File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 1.3.5
Original file line number Diff line number Diff line change @@ -18,17 +18,28 @@ jobs:
1818 build :
1919 runs-on : ubuntu-latest
2020 steps :
21- - uses : actions/checkout@v6
21+ - uses : actions/checkout@v4
2222 with :
2323 fetch-depth : 1
24+ - name : Read Bun version
25+ run : echo "BUN_VERSION=$(cat .bun-version)" >> $GITHUB_ENV
2426 - uses : oven-sh/setup-bun@v2
2527 with :
26- bun-version : latest
27- # - name: Remove bun.lock
28- # run: |
29- # rm -f bun.lock
30- - name : Install Dependencies
31- run : bun install
28+ bun-version : ${{ env.BUN_VERSION }}
29+ - name : Install Dependencies (retry)
30+ run : |
31+ for i in 1 2 3; do
32+ echo "Attempt $i: bun install --frozen-lockfile"
33+ if bun install --frozen-lockfile; then
34+ exit 0
35+ fi
36+ if [ "$i" -lt 3 ]; then
37+ echo "Install failed, retrying in 10s..."
38+ sleep 10
39+ fi
40+ done
41+ echo "bun install failed after 3 attempts"
42+ exit 1
3243 - name : Build Vite site
3344 run : |
3445 bun run build-only
Original file line number Diff line number Diff line change 22 "name" : " bluemsun" ,
33 "version" : " 0.0.0" ,
44 "private" : true ,
5+ "packageManager" : " bun@1.3.5" ,
56 "type" : " module" ,
67 "scripts" : {
78 "dev" : " vite" ,
You can’t perform that action at this time.
0 commit comments