perf(cli): optimize github actions deploy (#184)

This commit is contained in:
pengzhanbo 2024-09-16 02:38:18 +08:00 committed by GitHub
parent b99d926c0b
commit 4907bf4b29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,11 +23,6 @@ jobs:
{{#if (equal packageManager "pnpm")}}
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
# 选择要使用的 pnpm 版本
version: 9
# 使用 pnpm 安装依赖
run_install: true
{{/if}}
- name: Setup Node.js
uses: actions/setup-node@v4
@ -42,6 +37,13 @@ jobs:
run: npm ci
{{/if}}
{{#if (equal packageManager "pnpm")}}
# 安装依赖
# Install dependencies
- name: Install Dependencies
run: pnpm install --frozen-lockfile
{{/if}}
{{#if (equal packageManager "yarn")}}
- name: Run install
uses: borales/actions-yarn@v4