Skip to content

Commit

Permalink
login to npm manually
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <[email protected]>
  • Loading branch information
igorDykhta committed Nov 26, 2024
1 parent f60b94f commit 243d703
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
jobs:
publish-npm:
runs-on: ubuntu-latest

env:
NPM_AUTH_TOKEN: ${{secrets.npm_token}}

steps:
- uses: actions/checkout@v4

Expand All @@ -16,6 +20,9 @@ jobs:
- run: yarn install
- run: yarn bootstrap
- run: npm i -g [email protected]
- run: npm --version && npm publish --workspaces --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

- name: Login to NPM
run: npm config set "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}"

- name: Publish
run: npm publish --dry-run --workspaces --access public

0 comments on commit 243d703

Please sign in to comment.