Skip to content

Commit ba79d29

Browse files
committed
add.npmrc
1 parent f5e6613 commit ba79d29

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/changeset-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ permissions:
1010
contents: write
1111
pull-requests: write
1212

13+
env:
14+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
15+
1316
jobs:
1417
release:
1518
name: Release
@@ -26,7 +29,7 @@ jobs:
2629
with:
2730
node-version: "lts/*"
2831
cache: "yarn"
29-
registry-url: "https://registry.npmjs.org"
32+
registry-url: https://registry.npmjs.org
3033

3134
- name: Installing dependencies
3235
run: yarn install --frozen-lockfile
@@ -38,6 +41,7 @@ jobs:
3841
publish: yarn publish
3942
env:
4043
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4145
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4246

4347
- name: Export Error Logs as an Artifact

package/.npmrc

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

0 commit comments

Comments
 (0)