Skip to content

Commit 3279e49

Browse files
committed
update npmrc
1 parent 1054a26 commit 3279e49

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,17 @@ jobs:
3030
git commit -m "ci: bump version [skip ci]"
3131
3232
- name: Configure npm for publishing
33-
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
33+
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
3434
env:
3535
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3636
- name: Who am I
37-
run: npm whoami
37+
run: npm whoami || echo "whoami failed"
3838
env:
3939
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40-
41-
- name: Show npmrc
42-
run: cat ~/.npmrc
43-
40+
- name: Check if .npmrc exists
41+
run: test -f .npmrc && echo ".npmrc exists"
4442
- name: Publish to npm
45-
run: npm publish --access public || true
43+
run: npm publish --access public || true
4644
env:
4745
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4846

0 commit comments

Comments
 (0)