feat: 更新 Git 配置以使用 HTTPS,添加 pnpm 覆盖项
This commit is contained in:
1 parent
b7ff328a10
commit
94cbb9b147
3 files changed
+16
-5
No files matched your search
@@ -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: |
|
||||
|
||||
Reference in new issue
Block a user