File tree Expand file tree Collapse file tree 5 files changed +3961
-3930
lines changed Expand file tree Collapse file tree 5 files changed +3961
-3930
lines changed Original file line number Diff line number Diff line change 8
8
branches :
9
9
- master
10
10
11
- jobs :
11
+ jobs :
12
12
unit :
13
13
name : unit / ${{matrix.os}} / node v${{matrix.node_version}}
14
14
runs-on : ${{matrix.os}}
@@ -24,20 +24,31 @@ jobs:
24
24
uses : actions/setup-node@master
25
25
with :
26
26
node-version : ${{ matrix.node_version }}
27
- - name : Cache Yarn
28
- uses : actions/cache@v3
27
+ - uses : pnpm/action-setup@v2
28
+ name : Install pnpm
29
+ id : pnpm-install
29
30
with :
30
- path : ' **/node_modules'
31
- key : ${{ runner.os }}-${{matrix.node_version}}-yarn-${{ hashFiles('yarn.lock') }}
31
+ version : 8
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') }}
32
43
restore-keys : |
33
- ${{ runner.os }}-${{matrix.node_version}}-yarn -
34
- - name : Install Dependencies using Yarn
35
- run : yarn
44
+ ${{ runner.os }}-pnpm-store -
45
+ - name : Install dependencies
46
+ run : pnpm install
36
47
- name : Run Tests
37
- run : yarn test
48
+ run : pnpm run test
38
49
- name : Run TS Smoke Tests
39
- run : yarn test:ts
50
+ run : pnpm run test:ts
40
51
- name : Lint Prettier
41
- run : yarn lint:prettier
52
+ run : pnpm run lint:prettier
42
53
- name : Lint ESLint
43
- run : yarn lint
54
+ run : pnpm run lint
Original file line number Diff line number Diff line change 8
8
release :
9
9
uses : the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main
10
10
with :
11
+ packageManager : ' pnpm'
11
12
npmTag : alpha
12
13
buildScript : build
13
14
nodeVersion : 18
17
18
18
19
dependencies :
19
20
uses : the-guild-org/shared-config/.github/workflows/changesets-dependencies.yaml@main
21
+ with :
22
+ packageManager : ' pnpm'
20
23
secrets :
21
24
githubToken : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 8
8
stable :
9
9
uses : the-guild-org/shared-config/.github/workflows/release-stable.yml@main
10
10
with :
11
+ packageManager : ' pnpm'
11
12
releaseScript : release
12
13
nodeVersion : 18
13
14
secrets :
You can’t perform that action at this time.
0 commit comments