chore: migrate from node to bun #46
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user