Skip to content

Commit 58e6afb

Browse files
committed
fix: set npm config for publishing
1 parent 88d388b commit 58e6afb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,13 @@ jobs:
166166
set -ex
167167
npm config set provenance true
168168
npm config set //registry.npmjs.org/:_authToken "$NPM_AUTH_TOKEN"
169+
npm config set access public
169170
npm whoami
170171
if [[ "$GITHUB_REF_TYPE" = "tag" ]]; then
171172
yarn napi prepublish -t npm --gh-release-id ${{ steps.gh-release.outputs.id }}
172173
npm publish --access public
173174
elif [[ "$GITHUB_REF_TYPE" = "branch" ]]; then
175+
npm config set tag next
174176
yarn napi prepublish -t npm --skip-gh-release
175177
npm publish --access public --tag next
176178
else

0 commit comments

Comments
 (0)