chore: fix bun action
All checks were successful
Lint / lint (pull_request) Successful in 4m16s

This commit is contained in:
2026-03-25 11:04:48 +01:00
parent 06c4356f16
commit 94263d0329
2 changed files with 34 additions and 2 deletions

View File

@@ -12,11 +12,27 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Cache Bun binary
uses: actions/cache@v4
with:
path: ~/.bun
key: bun-v1.3.3-${{ runner.os }}
- name: Setup Bun - name: Setup Bun
run: | run: |
curl -fsSL https://bun.sh/install | bash -s "bun-v1.3.3" if ! [ -f "$HOME/.bun/bin/bun" ]; then
curl -fsSL https://bun.sh/install | bash -s "bun-v1.3.3"
fi
echo "$HOME/.bun/bin" >> $GITHUB_PATH echo "$HOME/.bun/bin" >> $GITHUB_PATH
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-deps-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-deps-
- name: Install dependencies - name: Install dependencies
run: bun install --frozen-lockfile run: bun install --frozen-lockfile

View File

@@ -12,9 +12,17 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Cache Bun binary
uses: actions/cache@v4
with:
path: ~/.bun
key: bun-v1.3.3-${{ runner.os }}
- name: Setup Bun - name: Setup Bun
run: | run: |
curl -fsSL https://bun.sh/install | bash -s "bun-v1.3.3" if ! [ -f "$HOME/.bun/bin/bun" ]; then
curl -fsSL https://bun.sh/install | bash -s "bun-v1.3.3"
fi
echo "$HOME/.bun/bin" >> $GITHUB_PATH echo "$HOME/.bun/bin" >> $GITHUB_PATH
- name: Set version from tag - name: Set version from tag
@@ -34,6 +42,14 @@ jobs:
env: env:
GITEA_TOKEN: ${{ secrets.TOKEN }} GITEA_TOKEN: ${{ secrets.TOKEN }}
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-deps-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-deps-
- name: Install dependencies - name: Install dependencies
run: bun install --frozen-lockfile run: bun install --frozen-lockfile