Skip to content

Commit b25fc1a

Browse files
authored
Fix NPM publish in CI (#50)
1 parent d862431 commit b25fc1a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/release.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@ jobs:
4949
shell: bash
5050
env:
5151
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_TOKEN }}
52-
run: npm publish --non-interactive --access public
52+
run: |
53+
mv ci-npmrc.txt .npmrc
54+
npm ci
55+
npm publish --non-interactive --access public

ci-npmrc.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
2+
registry=https://registry.npmjs.org/
3+
always-auth=true
4+

0 commit comments

Comments
 (0)