From 568df9b22b84f083b948279c03271b1c1658b122 Mon Sep 17 00:00:00 2001 From: Tthfyth Date: Mon, 8 Dec 2025 17:57:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20CI=20=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=20lockfile=20=E5=92=8C=20SSH=20=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 9 +++++++++ .github/workflows/test.yml | 16 ++++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f461e36..65ed455 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,6 +18,9 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Configure Git to use HTTPS instead of SSH + run: git config --global url."https://github.com/".insteadOf "git@github.com:" + - name: Setup pnpm uses: pnpm/action-setup@v2 with: @@ -58,6 +61,9 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Configure Git to use HTTPS instead of SSH + run: git config --global url."https://github.com/".insteadOf "git@github.com:" + - name: Setup pnpm uses: pnpm/action-setup@v2 with: @@ -100,6 +106,9 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Configure Git to use HTTPS instead of SSH + run: git config --global url."https://github.com/".insteadOf "git@github.com:" + - name: Setup pnpm uses: pnpm/action-setup@v2 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8c56acb..97a4869 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,10 +13,13 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Configure Git to use HTTPS instead of SSH + run: git config --global url."https://github.com/".insteadOf "git@github.com:" + - name: Setup pnpm uses: pnpm/action-setup@v2 with: - version: 8 + version: 9 - name: Setup Node.js uses: actions/setup-node@v4 @@ -25,7 +28,7 @@ jobs: cache: 'pnpm' - name: Install dependencies - run: pnpm install --frozen-lockfile + run: pnpm install --no-frozen-lockfile - name: Run ESLint run: pnpm run lint @@ -46,10 +49,13 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Configure Git to use HTTPS instead of SSH + run: git config --global url."https://github.com/".insteadOf "git@github.com:" + - name: Setup pnpm uses: pnpm/action-setup@v2 with: - version: 8 + version: 9 - name: Setup Node.js uses: actions/setup-node@v4 @@ -58,11 +64,12 @@ jobs: cache: 'pnpm' - name: Install dependencies - run: pnpm install --frozen-lockfile + run: pnpm install --no-frozen-lockfile - name: Build application env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CSC_IDENTITY_AUTO_DISCOVERY: false run: pnpm run build - name: Run tests @@ -71,4 +78,5 @@ jobs: - name: Package application env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CSC_IDENTITY_AUTO_DISCOVERY: false run: pnpm run package