Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

npmpublish.yml 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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: Node.js Package
  4. on:
  5. release:
  6. types: [created]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - uses: actions/setup-node@v1
  13. with:
  14. node-version: 12
  15. - run: npm ci
  16. - run: npm test
  17. publish-npm:
  18. needs: build
  19. runs-on: ubuntu-latest
  20. steps:
  21. - uses: actions/checkout@v2
  22. - uses: actions/setup-node@v1
  23. with:
  24. node-version: 12
  25. registry-url: https://registry.npmjs.org/
  26. - run: npm ci
  27. - run: npm publish
  28. env:
  29. NODE_AUTH_TOKEN: ${{secrets.npm_token}}
  30. # publish-gpr:
  31. # needs: build
  32. # runs-on: ubuntu-latest
  33. # steps:
  34. # - uses: actions/checkout@v2
  35. # - uses: actions/setup-node@v1
  36. # with:
  37. # node-version: 12
  38. # registry-url: https://npm.pkg.github.com/
  39. # - run: npm ci
  40. # - run: npm publish
  41. # env:
  42. # NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}