File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 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
+ yarn-install-flags :
6
+ description : " Flags to pass to yarn install"
7
+ required : false
8
+ default : " "
4
9
runs :
5
10
using : " composite"
6
11
steps :
12
17
cache-dependency-path : " site/yarn.lock"
13
18
- name : Install node_modules
14
19
shell : bash
15
- run : ./scripts/yarn_install.sh
20
+ run : ./scripts/yarn_install.sh ${{ inputs.yarn-install-flags }}
Original file line number Diff line number Diff line change @@ -192,19 +192,18 @@ jobs:
192
192
- name : Checkout
193
193
uses : actions/checkout@v3
194
194
195
- - uses : buildjet/ setup-node@v3
195
+ - uses : ./.github/actions/ setup-node
196
196
with :
197
- node-version : 16.16.0
197
+ # Only install prettier dep for this job
198
+ yarn-install-flags : " prettier"
199
+
198
200
199
201
- uses : buildjet/setup-go@v4
200
202
with :
201
203
# This doesn't need caching. It's super fast anyways!
202
204
cache : false
203
205
go-version : 1.20.5
204
206
205
- - name : Install prettier
206
- run : npm install -g prettier
207
-
208
207
- name : Install shfmt
209
208
run : go install mvdan.cc/sh/v3/cmd/shfmt@v3.5.0
210
209
You can’t perform that action at this time.
0 commit comments