File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : " Setup Node"
2
2
description : |
3
3
Sets up the node environment for tests, builds, etc.
4
+ inputs :
5
+ directory :
6
+ description : |
7
+ The directory to run the setup in.
8
+ required : false
9
+ default : " site"
4
10
runs :
5
11
using : " composite"
6
12
steps :
10
16
node-version : 16.20.1
11
17
# See https://github.com/actions/setup-node#caching-global-packages-data
12
18
cache : " yarn"
13
- cache-dependency-path : " site /yarn.lock"
19
+ cache-dependency-path : ${{ inputs.directory }} /yarn.lock
14
20
- name : Install node_modules
15
21
shell : bash
16
22
run : ../scripts/yarn_install.sh
17
- working-directory : site
23
+ working-directory : ${{ inputs.directory }}
Original file line number Diff line number Diff line change @@ -610,11 +610,9 @@ jobs:
610
610
uses : actions/checkout@v3
611
611
612
612
- name : Setup Node
613
- uses : buildjet/ setup-node@v3
613
+ uses : ./.github/actions/ setup-node
614
614
with :
615
- node-version : 16.20.1
616
- cache : " yarn"
617
- cache-dependency-path : " offlinedocs/yarn.lock"
615
+ directory : offlinedocs
618
616
619
617
- name : Install dependencies
620
618
run : |
You can’t perform that action at this time.
0 commit comments