Skip to content

Commit 149244b

Browse files
committed
chore: see if we can get away with setting the NPM_TOKEN in config rather than in .npmrc
## Summary So, bad news, the [last change](044c967) still [didn't work](https://github.com/solana-labs/solana-web3.js/actions/runs/4603084508/jobs/8132751693) because of some vagaries of saving the pnpm cache at the end of the run. Let's see if we can get this done without modifying `.npmrc` at all.
1 parent 044c967 commit 149244b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
- name: Publish NPM
5252
run: |
53-
echo $'\n//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc
53+
pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
5454
pnpm publish-packages
5555
env:
5656
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)