From 94cbb9b1476ae623929cbe04f3f9e0ca192c0faf Mon Sep 17 00:00:00 2001 From: Jasery Date: Wed, 29 Oct 2025 11:25:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20Git=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BB=A5=E4=BD=BF=E7=94=A8=20HTTPS=EF=BC=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20pnpm=20=E8=A6=86=E7=9B=96=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 13 +++++++++---- .npmrc | 3 ++- package.json | 5 +++++ 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2298886..7f7d12b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,16 +25,19 @@ jobs: with: node-version: '20' - - name: Configure Git for HTTPS + - name: Configure Git to use HTTPS instead of SSH run: | - git config --global url."https://github.com/".insteadOf ssh://git@github.com/ + git config --global url."https://github.com/".insteadOf git@github.com: git config --global url."https://".insteadOf git:// - name: Setup pnpm uses: pnpm/action-setup@v4 with: version: 9 - + run_install: | + - recursive: true + args: [--frozen-lockfile=false] + - name: Get pnpm store directory id: pnpm-cache run: | @@ -49,7 +52,9 @@ jobs: ${{ runner.os }}-pnpm-store- - name: Install dependencies - run: pnpm install + run: pnpm install --no-frozen-lockfile + env: + NPM_CONFIG_LEGACY_PEER_DEPS: true - name: Setup Git user run: | diff --git a/.npmrc b/.npmrc index 4464e3d..1cfbd6f 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ -electron_mirror=https://npmmirror.com/mirrors/electron/ +shamefully-hoist=true +strict-peer-dependencies=false \ No newline at end of file diff --git a/package.json b/package.json index ca82366..48239ea 100644 --- a/package.json +++ b/package.json @@ -88,6 +88,11 @@ "engines": { "node": ">=20.0.0" }, + "pnpm": { + "overrides": { + "node-gyp": "latest" + } + }, "dependencies": { "@mdi/font": "^7.4.47", "@vueuse/core": "^14.0.0",