Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75078fa

Browse files
authored
chore: try removing cache from fmt and lint (#8001)
1 parent 9cf3c58 commit 75078fa

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/ci.yaml

+11-4
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,19 @@ jobs:
188188
steps:
189189
- name: Checkout
190190
uses: actions/checkout@v3
191+
192+
- uses: buildjet/setup-node@v3
191193
with:
192-
fetch-depth: 0
193-
submodules: true
194+
node-version: 16.16.0
194195

195-
- uses: ./.github/actions/setup-node
196-
- uses: ./.github/actions/setup-go
196+
- uses: buildjet/setup-go@v4
197+
with:
198+
# This doesn't need caching. It's super fast anyways!
199+
cache: false
200+
go-version: 1.20.5
201+
202+
- name: Install prettier
203+
run: npm install -g prettier
197204

198205
- name: Install shfmt
199206
run: go install mvdan.cc/sh/v3/cmd/[email protected]

site/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"chromatic": "chromatic",
1212
"dev": "vite",
1313
"format:check": "prettier --cache --check '../**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'",
14-
"format:types": "prettier --write 'src/api/typesGenerated.ts'",
15-
"format:write": "prettier --write '../**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'",
14+
"format:types": "prettier --cache --write 'src/api/typesGenerated.ts'",
15+
"format:write": "prettier --cache --write '../**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'",
1616
"format:write:only": "prettier --write",
1717
"lint": "yarn typegen && yarn run lint:types && jest --selectProjects lint",
1818
"lint:fix": "FIX=true yarn lint",

0 commit comments

Comments
 (0)