Skip to content

Commit 6c99753

Browse files
authored
ci: fix release.yml (#152)
1 parent ea33b96 commit 6c99753

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,16 +169,14 @@ jobs:
169169
id: publish
170170
run: |
171171
set -ex
172-
npm config set provenance true
173-
npm config set //registry.npmjs.org/
174172
npm whoami
175173
if [[ "$GITHUB_REF_TYPE" = "tag" ]]; then
176174
yarn napi prepublish -t npm --gh-release-id ${{ steps.gh-release.outputs.id }}
177-
npm publish --access public
175+
npm publish --provenance --access public
178176
elif [[ "$GITHUB_REF_TYPE" = "branch" ]]; then
179177
npm config set tag next
180178
yarn napi prepublish -t npm --skip-gh-release
181-
npm publish --access public --tag next
179+
npm publish --provenance --access public --tag next
182180
else
183181
echo "Skip publish"
184182
fi

.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ httpRetry: 10
44

55
nodeLinker: node-modules
66

7+
npmPublishRegistry: 'https://registry.npmjs.org'
8+
79
preferReuse: true
810

911
yarnPath: .yarn/releases/yarn-4.9.2.cjs

0 commit comments

Comments
 (0)