File tree Expand file tree Collapse file tree 1 file changed +22
-9
lines changed
Expand file tree Collapse file tree 1 file changed +22
-9
lines changed Original file line number Diff line number Diff line change 1- name : Build and Deploy Element Plus
2-
1+ name : Build and Deploy Playground
32on :
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
3953 target-folder : /
4054 single-commit : true
4155 clean : true
42-
You can’t perform that action at this time.
0 commit comments