Skip to content

Commit 9ee50b4

Browse files
authored
chore: use a combination of an env var and a pattern in .npmrc to achieve authorization
1 parent 2ca9e77 commit 9ee50b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/cicd.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ jobs:
4949
run: scripts/setup-test-validator.sh
5050

5151
- name: Publish NPM
52-
run: pnpm publish-packages
52+
run: |
53+
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
54+
pnpm publish-packages
5355
env:
5456
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5657
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5758

5859
- name: Deploy Github Page

0 commit comments

Comments
 (0)