Skip to content

Commit 38104c1

Browse files
authored
fix: fix build-deploy
1 parent 34e9f73 commit 38104c1

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

.github/workflows/build-deploy.yaml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
name: Build and Deploy Element Plus
2-
1+
name: Build and Deploy Playground
32
on:
43
push:
54
branches:
@@ -12,24 +11,39 @@ jobs:
1211
- name: Checkout
1312
uses: actions/checkout@v4
1413

15-
- name: Install pnpm
16-
run: corepack enable
17-
1814
- name: Setup Node.js
1915
uses: actions/setup-node@v3
2016
with:
2117
node-version: '18'
22-
cache: 'pnpm'
18+
19+
- name: Setup PNPM
20+
uses: pnpm/action-setup@v2
21+
with:
22+
version: latest
23+
24+
- name: Get pnpm store directory
25+
shell: bash
26+
run: |
27+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_ENV
28+
29+
- name: Setup pnpm cache
30+
uses: actions/cache@v3
31+
with:
32+
path: ${{ env.STORE_PATH }}
33+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
34+
restore-keys: |
35+
${{ runner.os }}-pnpm-store-
2336
2437
- name: Install Dependencies
25-
run: pnpm install --no-frozen-lockfile
38+
run: pnpm install
39+
2640
- name: Build Vue Utils
2741
run: pnpm run build:vue-utils
2842

2943
- name: Build playground Site
3044
run: cd playground && pnpm run build
3145

32-
- name: Deploy to playgounr packages
46+
- name: Deploy to playground packages
3347
uses: JamesIves/github-pages-deploy-action@v4.4.1
3448
with:
3549
branch: docs
@@ -39,4 +53,3 @@ jobs:
3953
target-folder: /
4054
single-commit: true
4155
clean: true
42-

0 commit comments

Comments
 (0)