CI(GitHub Actions): --no-git-checks

Summary:
```
ERR_PNPM_GIT_UNKNOWN_BRANCH  The Git HEAD may not attached to any branch, but your "publish-branch" is set to "master|main".
If you want to disable Git checks on publish, set the "git-checks" setting to "false", or run again with "--no-git-checks".
Error: Process completed with exit code 1.
```

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Land and push tag again.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D636
This commit is contained in:
revi 2024-08-01 19:18:14 +09:00
parent 00da98d2b7
commit 1c5bfa8702
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94

View file

@ -30,7 +30,7 @@ jobs:
- name: 'Install dependencies' - name: 'Install dependencies'
run: pnpm install run: pnpm install
- name: 'Publish to npm' - name: 'Publish to npm'
run: pnpm publish --provenance --access public run: pnpm publish --provenance --access public --no-git-checks
working-directory: './npm/eslint-config' working-directory: './npm/eslint-config'
env: env:
NPM_CONFIG_PROVENANCE: true NPM_CONFIG_PROVENANCE: true
@ -58,7 +58,7 @@ jobs:
- name: 'Install dependencies' - name: 'Install dependencies'
run: pnpm install run: pnpm install
- name: 'Publish to npm' - name: 'Publish to npm'
run: pnpm publish --provenance --access public run: pnpm publish --provenance --access public --no-git-checks
working-directory: './npm/prettier-config' working-directory: './npm/prettier-config'
env: env:
NPM_CONFIG_PROVENANCE: true NPM_CONFIG_PROVENANCE: true