Skip to content

Commit 268e57a

Browse files
committed
create npmrc on server
1 parent 7f9e13e commit 268e57a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ jobs:
2828
- name: Install Dependencies
2929
run: npm i
3030

31+
- name: Creating .npmrc
32+
run: |
33+
cat << EOF > "$HOME/.npmrc"
34+
//npm.pkg.github.com/:_authToken=$NPM_TOKEN
35+
EOF
36+
env:
37+
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
3139
- name: Create Release Pull Request or create GitHub release
3240
id: changesets
3341
uses: changesets/action@e9cc34b540dd3ad1b030c57fd97269e8f6ad905a
@@ -36,5 +44,5 @@ jobs:
3644
publish: yarn release
3745
env:
3846
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
NPM_TOKEN: ${{ secrets.GPR_AUTH_TOKEN_SHARED }}
40-
NODE_AUTH_TOKEN: ${{ secrets.GPR_AUTH_TOKEN_SHARED }}
47+
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)