npm-publish.yml 650 B

12345678910111213141516171819202122
  1. # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
  2. # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
  3. name: Publish NPM package
  4. on:
  5. release:
  6. types: [created]
  7. jobs:
  8. publish-npm:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - uses: actions/setup-node@v2
  13. with:
  14. node-version: 14
  15. registry-url: https://registry.npmjs.org/
  16. - run: yarn install --frozen-lockfile
  17. - run: npm publish
  18. env:
  19. NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}