File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ name: Deploy GitHub Page
4
4
on :
5
5
# Runs on pushes targeting the default branch
6
6
push :
7
- branches : [' main' ]
7
+ branches : [" main" ]
8
8
9
9
# Allows you to run this workflow manually from the Actions tab
10
10
workflow_dispatch :
@@ -17,7 +17,7 @@ permissions:
17
17
18
18
# Allow one concurrent deployment
19
19
concurrency :
20
- group : ' pages'
20
+ group : " pages"
21
21
cancel-in-progress : true
22
22
23
23
jobs :
@@ -34,22 +34,26 @@ jobs:
34
34
uses : actions/setup-node@v3
35
35
with :
36
36
node-version : 18
37
- registry-url : ' https://registry.npmjs.org'
37
+ registry-url : " https://registry.npmjs.org"
38
38
- name : Setup PNPM
39
- uses : pnpm/action-setup@v2.2.1
39
+ uses : pnpm/action-setup@v2
40
40
with :
41
+ version : latest
41
42
run_install : false
43
+
42
44
- name : Get pnpm store directory
43
- id : pnpm-cache
45
+ shell : bash
44
46
run : |
45
- echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
47
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
48
+
46
49
- uses : actions/cache@v3
47
50
name : Setup pnpm cache
48
51
with :
49
- path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
52
+ path : ${{ env.STORE_PATH }}
50
53
key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
51
54
restore-keys : |
52
55
${{ runner.os }}-pnpm-store-
56
+
53
57
- name : Install dependencies
54
58
run : pnpm install
55
59
- name : Build
60
64
uses : actions/upload-pages-artifact@v1
61
65
with :
62
66
# Upload dist repository
63
- path : ' ./dist'
67
+ path : " ./dist"
64
68
- name : Deploy to GitHub Pages
65
69
id : deployment
66
- uses : actions/deploy-pages@v1
70
+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments