Merge pull request #414 from lifeomic/dependabot/npm_and_yarn/express… #370
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: Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: npm | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- name: Lint, test, and build | |
run: | | |
yarn | |
yarn lint | |
yarn test --silent | |
yarn build | |
- name: Publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{secrets.LIFEOMIC_NPM_TOKEN}} | |
run: | | |
yarn build | |
npx semantic-release |