We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f5a1ad commit d70e2d9Copy full SHA for d70e2d9
.github/workflows/ci.yaml
@@ -203,7 +203,16 @@ jobs:
203
go-version: 1.20.5
204
205
- name: Install prettier
206
- run: npm install -g prettier
+ # We only need prettier for fmt, so do not install all dependencies.
207
+ # There is no way to install a single package with yarn, so we have to
208
+ # make a new package.json with only prettier listed as a dependency.
209
+ # Then running `yarn` will only install prettier.
210
+ run: |
211
+ cd site
212
+ mv package.json package.json.bak
213
+ jq '{dependencies: {prettier: .devDependencies.prettier}}' < package.json.bak > package.json
214
+ yarn --frozen-lockfile
215
+ mv package.json.bak package.json
216
217
- name: Install shfmt
218
run: go install mvdan.cc/sh/v3/cmd/shfmt@v3.5.0
0 commit comments