Skip to content

Commit ab814a0

Browse files
committed
ci: use npm auth token secret for package operations
1 parent 3748358 commit ab814a0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/npm-dist-tag.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- name: Set npm dist-tag
6969
run: npm dist-tag add "genlayer@$package_version" "$dist_tag"
7070
env:
71-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
71+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN || secrets.NPM_TOKEN }}
7272

7373
- name: Verify npm dist-tag
7474
run: |

‎.github/workflows/publish.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
- name: Publish to npm
8282
run: npm publish --provenance --access public --tag "${{ steps.version.outputs.npm_dist_tag }}"
8383
env:
84-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
84+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN || secrets.NPM_TOKEN }}
8585

8686
- name: Create GitHub Release
8787
env:

0 commit comments

Comments
 (0)