Skip to content

Commit 5623241

Browse files
authored
(ci): Update to granular NPM tokens (#202)
1 parent 2a76953 commit 5623241

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ jobs:
5959
- name: Test
6060
run: pnpm test
6161

62+
- name: Configure NPM authentication
63+
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
64+
env:
65+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN_PADDLE_NODE_SDK}}
66+
6267
- name: Check version and publish
6368
run: |
6469
PACKAGE_NAME=$(node -p "require('./package.json').name")
@@ -75,5 +80,3 @@ jobs:
7580
else
7681
pnpm publish --access public
7782
fi
78-
env:
79-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)