File tree 5 files changed +59
-6
lines changed
packages/generators/pnpm-ci
5 files changed +59
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @aiou/generator-pnpm-ci " : minor
3
+ ---
4
+
5
+ add pnpm ci cache
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ neo run @aiou/generator-pnpm-ci
10
10
11
11
prepack follow parts into your project
12
12
13
+ > ** 💡 NOTE**
14
+ CI workflows will automatic choose pnpm version and cache `.pnpm-store` via <https://github.com/pnpm/action-setup> .
15
+
13
16
- ` release.yml ` - publish package with ` changeset `
14
17
- ` snapshot-release.yml ` - publish prerelease package with ` changeset `
15
18
- ` husky `
Original file line number Diff line number Diff line change 23
23
uses : actions/setup-node@v1
24
24
with :
25
25
node-version : ${{ matrix.node-version }}
26
- - name : Install pnpm
27
-
26
+ - uses : pnpm/action-setup@v2
27
+ name : Install pnpm
28
+ id : pnpm-install
29
+ with :
30
+ run_install : false
31
+ - name : get pnpm store directory
32
+ id : pnpm-cache
33
+ shell : bash
34
+ run : |
35
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
36
+ - uses : actions/cache@v3
37
+ name : setup pnpm cache
38
+ with :
39
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
40
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
41
+ restore-keys : |
42
+ ${{ runner.os }}-pnpm-store-
28
43
- name : Install
29
44
run : |
30
45
pnpm install --frozen-lockfile=false
Original file line number Diff line number Diff line change 27
27
uses : actions/setup-node@v2
28
28
with :
29
29
node-version : 14
30
- - name : install pnpm
31
-
30
+ - uses : pnpm/action-setup@v2
31
+ name : Install pnpm
32
+ id : pnpm-install
33
+ with :
34
+ run_install : false
35
+ - name : get pnpm store directory
36
+ id : pnpm-cache
37
+ shell : bash
38
+ run : |
39
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
40
+ - uses : actions/cache@v3
41
+ name : setup pnpm cache
42
+ with :
43
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
44
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
45
+ restore-keys : |
46
+ ${{ runner.os }}-pnpm-store-
32
47
- name : install dependencies
33
48
run : pnpm install --frozen-lockfile=false
34
49
- name : create and publish versions
Original file line number Diff line number Diff line change 25
25
uses : actions/setup-node@v2
26
26
with :
27
27
node-version : 14
28
- - name : install pnpm
29
-
28
+ - uses : pnpm/action-setup@v2
29
+ name : Install pnpm
30
+ id : pnpm-install
31
+ with :
32
+ run_install : false
33
+ - name : get pnpm store directory
34
+ id : pnpm-cache
35
+ shell : bash
36
+ run : |
37
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
38
+ - uses : actions/cache@v3
39
+ name : setup pnpm cache
40
+ with :
41
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
42
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
43
+ restore-keys : |
44
+ ${{ runner.os }}-pnpm-store-
30
45
- name : install dependencies
31
46
run : pnpm install --frozen-lockfile=false
32
47
- name : create and publish versions
You can’t perform that action at this time.
0 commit comments