Skip to content

Commit af289f3

Browse files
Update npm-publish-github-packages.yml
Add Creating .npmrc. Required
1 parent a092099 commit af289f3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/npm-publish-github-packages.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ jobs:
3030
with:
3131
version: 9.1.4
3232
run_install: false
33+
34+
- name: Creating .npmrc
35+
run: |
36+
cat << EOF > "$HOME/.npmrc"
37+
//npm.pkg.github.com/:_authToken=$NPM_TOKEN
38+
EOF
39+
env:
40+
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3341

3442
- uses: actions/checkout@v4
3543
- uses: actions/setup-node@v4

0 commit comments

Comments
 (0)