This repository was archived by the owner on Aug 5, 2025. It is now read-only.
Merge pull request #592 from lifeomic/dependabot/npm_and_yarn/example… #519
This file contains hidden or 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: | |
| main: | |
| runs-on: ubuntu-latest | |
| environment: npm | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.LIFEOMIC_NPM_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v1 | |
| with: | |
| node-version: 18 | |
| - name: Test and Build | |
| run: | | |
| echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc | |
| yarn | |
| yarn test:ci | |
| yarn build | |
| - name: Publish | |
| run: yarn semantic-release | |
| - name: Coveralls | |
| uses: coverallsapp/github-action@v1.1.2 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| path-to-lcov: ./coverage/lcov.info | |
| parallel: true | |
| finish: | |
| needs: main | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Coveralls Finished | |
| uses: coverallsapp/github-action@v1.1.2 | |
| with: | |
| github-token: ${{ secrets.github_token }} | |
| parallel-finished: true |