Skip to content

Commit 181571b

Browse files
committed
ci: fix pnpm
1 parent 3578d44 commit 181571b

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

.github/workflows/action.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,27 @@ jobs:
1515
strategy:
1616
matrix:
1717
node-version: [24.x]
18-
18+
1919
steps:
20-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
21-
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
23-
with:
24-
node-version: ${{ matrix.node-version }}
25-
- name: Install dependencies
26-
run: yarn
27-
- name: Run build
28-
run: yarn build
29-
- name: Deploy
30-
uses: JamesIves/github-pages-deploy-action@9d877eea73427180ae43cf98e8914934fe157a1a # v4.7.6
31-
with:
32-
folder: docs/.vuepress/dist
33-
clean: true
20+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
23+
with:
24+
version: 10
25+
- name: Install Node.js
26+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'pnpm'
30+
31+
- name: Install Dependencies
32+
run: pnpm install
33+
34+
- name: Run build
35+
run: pnpm run build
36+
37+
- name: Deploy
38+
uses: JamesIves/github-pages-deploy-action@9d877eea73427180ae43cf98e8914934fe157a1a # v4.7.6
39+
with:
40+
folder: docs/.vuepress/dist
41+
clean: true

0 commit comments

Comments
 (0)