Skip to content

Commit 27f307a

Browse files
committed
ci fixed
1 parent 20bebb3 commit 27f307a

3 files changed

Lines changed: 20 additions & 7 deletions

File tree

.bun-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.3.5

.github/workflows/deploy-site-pages.yaml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
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",

0 commit comments

Comments
 (0)