File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : create-spectacle
2
2
3
+ env :
4
+ PNPM_STORE_PATH : ' '
5
+
3
6
on :
4
7
push :
5
8
branches :
@@ -24,26 +27,29 @@ jobs:
24
27
node-version : [18.x]
25
28
create-type : ['tsx', 'onepage']
26
29
steps :
27
- - uses : actions/checkout@v2
28
- - uses : actions/setup-node@v2
30
+ - uses : actions/checkout@v4
31
+ - uses : actions/setup-node@v4
29
32
with :
30
33
node-version : ${{ matrix.node-version }}
31
34
32
35
# Wireit cache
33
36
- uses : google/wireit@setup-github-actions-caching/v1
34
37
35
-
38
+ - uses : pnpm/action-setup@v3
39
+ name : Install pnpm
36
40
with :
41
+ run_install : false
37
42
version : 7
38
43
39
44
- name : Get pnpm store directory
40
45
id : pnpm-cache
41
- run : echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
46
+ run : |
47
+ echo "PNPM_STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
42
48
43
49
- name : Setup pnpm cache
44
50
uses : actions/cache@v3
45
51
with :
46
- path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
52
+ path : ${{ env.PNPM_STORE_PATH }}
47
53
key : ${{ runner.os }}-pnpm-store-${{ hashFiles('./pnpm-lock.yaml') }}
48
54
restore-keys : |
49
55
${{ runner.os }}-pnpm-store-
You can’t perform that action at this time.
0 commit comments