Skip to content

Commit 6df0c4a

Browse files
committed
chore: make npmrc
1 parent be99dfd commit 6df0c4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- main
88

99
permissions:
10-
contents: write
10+
contents: read
1111
pull-requests: write
1212

1313
env:
@@ -36,7 +36,9 @@ jobs:
3636
with:
3737
cache: yarn
3838
node-version: '20.x'
39-
registry-url: 'https://registry.npmjs.org'
39+
40+
- name: Setup npmrc
41+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > .npmrc
4042

4143
- name: Install
4244
if: ${{ steps.release.outputs.releases_created }}
@@ -50,5 +52,3 @@ jobs:
5052
# need to publish all unpublished versions to NPM here
5153
- run: yarn workspaces foreach npm publish --access=public
5254
if: ${{ steps.release.outputs.releases_created }}
53-
env:
54-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)