mirror of
https://github.com/Jerryplusy/AI-powered-switches.git
synced 2025-07-04 13:19:20 +00:00
使用github推荐的方式添加pnpm
This commit is contained in:
parent
284f8cd102
commit
e3ed40c4b6
19
.github/workflows/deploy.yml
vendored
19
.github/workflows/deploy.yml
vendored
@ -15,21 +15,22 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Setup pnpm
|
||||||
uses: actions/setup-node@v3
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
version: 9
|
||||||
cache: 'pnpm'
|
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Setup Node.js
|
||||||
uses: pnpm/action-setup@v2
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
version: 8
|
node-version: 20
|
||||||
|
registry-url: https://registry.npmjs.org
|
||||||
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: pnpm run build
|
run: pnpm run build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user