Skip to content

Commit fbcfb64

Browse files
committed
fix(publish): write git-checks=false to .npmrc instead of env
'npm config set git-checks false' is rejected (npm strict-validates on write). env npm_config_git_checks is uncertain (npm may read it too). Writing git-checks=false directly to .npmrc: pnpm reads it for sure (official setting), npm publish only warns on the unknown key but does not abort (read is lenient unlike config set).
1 parent 82cbf47 commit fbcfb64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ jobs:
252252
- name: Publish
253253
env:
254254
GITHUB_TOKEN: ${{ github.token }}
255-
npm_config_git_checks: 'false'
256255
run: |
257256
npm config set provenance true
257+
echo "git-checks=false" >> .npmrc
258258
npm publish --access public

0 commit comments

Comments
 (0)