Skip to content
Snippets Groups Projects
Verified Commit 5884a9d7 authored by Mateusz Tyszczak's avatar Mateusz Tyszczak :scroll:
Browse files

Add npm js registry auth token update step in github actions

parent bc201bc1
No related branches found
No related tags found
No related merge requests found
Pipeline #103402 passed
...@@ -5,7 +5,7 @@ on: ...@@ -5,7 +5,7 @@ on:
- "*.*.*" # This ensures the workflow runs on any newly created tag - "*.*.*" # This ensures the workflow runs on any newly created tag
workflow_dispatch: # This allows the workflow to be triggered manually workflow_dispatch: # This allows the workflow to be triggered manually
jobs: jobs:
build: publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: read contents: read
...@@ -16,6 +16,6 @@ jobs: ...@@ -16,6 +16,6 @@ jobs:
with: with:
node-version: '18' node-version: '18'
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
- run: ./scripts/publish_by_tag.sh 452 "${{ github.ref_name }}" "dist/hiveio-workerbee-${{ github.ref_name }}.tgz" build - run: |
env: echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} >> .npmrc
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} ./scripts/publish_by_tag.sh 452 "${{ github.ref_name }}" "dist/hiveio-workerbee-${{ github.ref_name }}.tgz" build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment