Skip to content

Commit 4a97a6f

Browse files
committed
fix(publish): disable pnpm git-checks in napi publish
napi prepublish runs 'pnpm publish' internally without --no-git-checks; CI working tree has downloaded artifacts so pnpm's git-checks rejects it. Set git-checks=false via .npmrc so the wrapped pnpm publish skips the check.
1 parent 86f5ca8 commit 4a97a6f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,4 +254,5 @@ jobs:
254254
GITHUB_TOKEN: ${{ github.token }}
255255
run: |
256256
npm config set provenance true
257+
npm config set git-checks false
257258
npm publish --access public

0 commit comments

Comments
 (0)