chore(release): 1.6.1 #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: semantic-release | |
on: [push] | |
jobs: | |
release: | |
# Only release on push to master | |
if: github.event_name == 'push' && github.ref == 'refs/heads/production' | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [14] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Cache node modules | |
uses: actions/cache@v1 | |
with: | |
path: ~/.yarn | |
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.node }}- | |
${{ runner.os }}- | |
- name: Install | |
run: | | |
yarn | |
- name: Build | |
run: | | |
yarn tsc | |
- name: Release | |
run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |