Skip to content

Commit 1ff87a2

Browse files
committed
Use .npmrc to actually use the access token in the env var
1 parent 5b8b466 commit 1ff87a2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/publish_to_npm.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ jobs:
1919
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2020
- name: Use default Node.js
2121
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
22-
with:
23-
registry-url: 'https://registry.npmjs.org'
2422
- run: npm ci
2523
- run: npm publish --provenance --access public
2624
env:
27-
NPM_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
25+
NPM_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} # See .npmrc for where this is used.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//registry.npmjs.org/:_authToken=${NPM_ACCESS_TOKEN}

0 commit comments

Comments
 (0)