From 1c5bfa87020ef126eab79fbe0373d8fc8071fc6e Mon Sep 17 00:00:00 2001 From: Yongmin Hong Date: Thu, 1 Aug 2024 19:18:14 +0900 Subject: [PATCH] CI(GitHub Actions): `--no-git-checks` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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 --- .github/workflows/npm-pub.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-pub.yml b/.github/workflows/npm-pub.yml index b533388..96fb233 100644 --- a/.github/workflows/npm-pub.yml +++ b/.github/workflows/npm-pub.yml @@ -30,7 +30,7 @@ jobs: - name: 'Install dependencies' run: pnpm install - name: 'Publish to npm' - run: pnpm publish --provenance --access public + run: pnpm publish --provenance --access public --no-git-checks working-directory: './npm/eslint-config' env: NPM_CONFIG_PROVENANCE: true @@ -58,7 +58,7 @@ jobs: - name: 'Install dependencies' run: pnpm install - name: 'Publish to npm' - run: pnpm publish --provenance --access public + run: pnpm publish --provenance --access public --no-git-checks working-directory: './npm/prettier-config' env: NPM_CONFIG_PROVENANCE: true