Skip to content

Commit 5357048

Browse files
authored
(ci): Update to use granular NPM token (#52)
1 parent eb3c571 commit 5357048

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
@@ -44,6 +44,11 @@ jobs:
4444
run: |
4545
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
4646
47+
- name: Configure NPM authentication
48+
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
49+
env:
50+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN_PADDLE_MCP_SERVER}}
51+
4752
- name: Setup pnpm cache
4853
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
4954
with:
@@ -75,5 +80,3 @@ jobs:
7580
- name: Publish to npm
7681
if: steps.version-check.outputs.exists == 'false'
7782
run: pnpm publish --access public
78-
env:
79-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)