File tree 5 files changed +1799
-2229
lines changed
5 files changed +1799
-2229
lines changed Original file line number Diff line number Diff line change 1
1
name : Setup Action
2
2
description : |
3
- Setup Node.js and pnpm .
3
+ Setup Node.js and yarn .
4
4
5
5
runs :
6
6
using : composite
7
7
steps :
8
- - name : Setup pnpm
9
- uses : pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
10
8
- name : Setup Node.js
11
9
uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
12
10
with :
13
11
node-version-file : ./.node-version
14
- cache : pnpm
15
- - name : Get pnpm store directory
12
+ cache : yarn
13
+ - name : Get yarn cache directory path
14
+ id : yarn-cache-dir-path
15
+ run : echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
16
16
shell : bash
17
- run : |
18
- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
19
17
- uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
20
- name : Setup pnpm cache
18
+ name : Setup yarn cache
21
19
with :
22
- path : ${{ env.STORE_PATH }}
23
- key : ${{ runner.os }}-pnpm-store- ${{ hashFiles('**/pnpm-lock.yaml ') }}
20
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
21
+ key : ${{ runner.os }}-yarn- ${{ hashFiles('**/yarn.lock ') }}
24
22
restore-keys : |
25
- ${{ runner.os }}-pnpm-store -
23
+ ${{ runner.os }}-yarn -
26
24
- name : Install Dependencies
27
- run : pnpm install --frozen-lockfile
25
+ run : yarn install --frozen-lockfile
28
26
shell : bash
Original file line number Diff line number Diff line change 10
10
- name : Setup
11
11
uses : ./.github/actions/setup
12
12
- name : Lint
13
- run : pnpm lint
13
+ run : yarn lint
14
14
- name : TypeCheck
15
- run : pnpm typecheck
15
+ run : yarn typecheck
16
16
17
17
unit-test :
18
18
name : Unit Tests
24
24
- name : Setup
25
25
uses : ./.github/actions/setup
26
26
- name : Test
27
- run : pnpm test
27
+ run : yarn test
28
28
- name : Build
29
- run : pnpm build
29
+ run : yarn build
30
30
31
31
build :
32
32
name : Build
38
38
- name : Setup
39
39
uses : ./.github/actions/setup
40
40
- name : Build
41
- run : pnpm build
41
+ run : yarn build
42
42
- name : Upload Artifact
43
43
uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
44
44
with :
Original file line number Diff line number Diff line change 30
30
"typescript" : " ^5.4.5" ,
31
31
"vitest" : " ^1.5.0"
32
32
},
33
- "packageManager" :
" [email protected] +sha512.ee7b93e0c2bd11409c6424f92b866f31d3ea1bef5fbe47d3c7500cdc3c9668833d2e55681ad66df5b640c61fa9dc25d546efa54d76d7f8bf54b13614ac293631 "
33
+ "packageManager" :
" [email protected] +sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e "
34
34
}
You can’t perform that action at this time.
0 commit comments