Skip to content

Commit f5263fe

Browse files
committed
chore: Use yarn cache for GitHub Actions
1 parent 28568ae commit f5263fe

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on:
44
branches:
55
- main
66
paths-ignore:
7-
- 'README.md'
7+
- "README.md"
88
pull_request:
99
paths-ignore:
10-
- 'README.md'
10+
- "README.md"
1111
jobs:
1212
test:
1313
runs-on: ubuntu-22.04
@@ -18,8 +18,17 @@ jobs:
1818
uses: actions/setup-node@v4
1919
with:
2020
node-version: 20
21+
cache: yarn
2122
- name: Install dependencies
22-
run: yarn cache clean && yarn install --frozen-lockfile
23+
run: |
24+
n=0
25+
until [ $n -ge 3 ]
26+
do
27+
yarn install && echo "done" && break
28+
n=$((n+1))
29+
echo "Retry $n/3..."
30+
sleep 15
31+
done
2332
- name: Build
2433
run: yarn build
2534
- name: Lint

0 commit comments

Comments
 (0)