publishing list config #36
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: Node.js Package | |
on: | |
push: | |
branches: | |
- 'igr/publishing-4' | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
env: | |
NPM_AUTH_TOKEN: ${{secrets.npm_token}} | |
steps: | |
- uses: actions/checkout@v4 | |
# use Volta to manage yarn/node versions | |
- uses: volta-cli/action@v4 | |
- run: yarn install | |
- run: yarn bootstrap | |
- run: npm i -g [email protected] | |
- name: Login to NPM | |
run: npm config set "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" | |
- name: NPM config | |
run: npm --version && npm config list | |
- name: Publish | |
run: npm publish --dry-run --workspaces --access public |