Skip to content

Commit

Permalink
Add npm js registry auth token update step in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mtyszczak committed Sep 19, 2024
1 parent bc201bc commit 5884a9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- "*.*.*" # This ensures the workflow runs on any newly created tag
workflow_dispatch: # This allows the workflow to be triggered manually
jobs:
build:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -16,6 +16,6 @@ jobs:
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- run: ./scripts/publish_by_tag.sh 452 "${{ github.ref_name }}" "dist/hiveio-workerbee-${{ github.ref_name }}.tgz" build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: |
echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} >> .npmrc
./scripts/publish_by_tag.sh 452 "${{ github.ref_name }}" "dist/hiveio-workerbee-${{ github.ref_name }}.tgz" build

0 comments on commit 5884a9d

Please sign in to comment.