File tree Expand file tree Collapse file tree 3 files changed +34
-38
lines changed Expand file tree Collapse file tree 3 files changed +34
-38
lines changed Original file line number Diff line number Diff line change
1
+ name : Setup
2
+ description : Setup Node.js and install dependencies
3
+
4
+ runs :
5
+ using : composite
6
+ steps :
7
+ - name : Setup Node.js
8
+ uses : actions/setup-node@v3
9
+ with :
10
+ node-version : 16.x
11
+
12
+ - name : Restore yarn cache
13
+ id : yarn-cache
14
+ uses : actions/cache@v3
15
+ with :
16
+ path : |
17
+ '**/node_modules'
18
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
19
+ restore-keys : |
20
+ ${{ runner.os }}-yarn-
21
+
22
+ - name : Install dependencies
23
+ if : steps.yarn-cache.outputs.cache-hit != 'true'
24
+ run : yarn install --frozen-lockfile
25
+ shell : bash
Original file line number Diff line number Diff line change 59
59
- name : Checkout
60
60
uses : actions/checkout@v3
61
61
62
- - name : Setup Node.js
63
-
64
- with :
65
- node-version : 16.x
66
- cache : yarn
67
-
68
- - name : Cache project dependencies
69
- id : root-yarn-cache
70
- uses : actions/cache@v3
71
- with :
72
- path : |
73
- **/node_modules
74
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
75
-
76
- - name : Install dependencies
77
- if : steps.root-yarn-cache.outputs.cache-hit != 'true'
78
- run : |
79
- yarn install --frozen-lockfile
62
+ - name : Setup
63
+ uses : ./.github/actions/setup
80
64
81
65
- name : Build package
82
66
run : |
110
94
path : |
111
95
${{ env.work_dir }}/**/node_modules
112
96
key : ${{ runner.os }}-library-yarn-${{ hashFiles(format('{0}/**/package.json', env.work_dir)) }}
97
+ restore-keys : |
98
+ ${{ runner.os }}-library-yarn-
113
99
114
100
- name : Install dependencies of library
115
101
if : steps.library-yarn-cache.outputs.cache-hit != 'true'
Original file line number Diff line number Diff line change 9
9
- name : Checkout
10
10
uses : actions/checkout@v3
11
11
12
- - name : Setup Node.js
13
- uses : actions/setup-node@v3
14
- with :
15
- node-version : 16.x
16
- cache : yarn
17
-
18
- - name : Cache dependencies
19
- id : yarn-cache
20
- uses : actions/cache@v3
21
- with :
22
- path : |
23
- **/node_modules
24
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
25
-
26
- - name : Install dependencies
27
- if : steps.yarn-cache.outputs.cache-hit != 'true'
28
- run : yarn install --frozen-lockfile
12
+ - name : Setup
13
+ uses : ./.github/actions/setup
29
14
30
15
- name : Lint
31
16
run : yarn lint
32
17
33
- - name : Build packages
34
- run : yarn lerna run prepare
35
-
36
18
- name : Typecheck
37
19
run : yarn typescript
20
+
21
+ - name : Build packages
22
+ run : yarn lerna run prepare
You can’t perform that action at this time.
0 commit comments