feat: convert to bun
This commit is contained in:
@@ -14,19 +14,13 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Set up pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
- name: Set up Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
version: 10.x
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 24.14.0
|
||||
cache: pnpm
|
||||
bun-version: 1.3.10
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Cache Astro Build Cache
|
||||
uses: actions/cache@v5
|
||||
@@ -34,16 +28,16 @@ jobs:
|
||||
path: |
|
||||
node_modules/.cache
|
||||
.astro/cache
|
||||
key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }}
|
||||
key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/bun.lockb') }}-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-
|
||||
${{ runner.os }}-astro-cache-${{ hashFiles('**/bun.lockb') }}-
|
||||
${{ runner.os }}-astro-cache-
|
||||
|
||||
- name: Lint Code
|
||||
run: pnpm lint
|
||||
run: bun run lint
|
||||
|
||||
- name: Build Project
|
||||
run: pnpm build
|
||||
run: bun run build
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-js
|
||||
|
||||
@@ -14,19 +14,13 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Set up pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
- name: Set up Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
version: 10.x
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 24.14.0
|
||||
cache: pnpm
|
||||
bun-version: 1.3.10
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Cache Astro Build Cache
|
||||
uses: actions/cache@v5
|
||||
@@ -34,16 +28,16 @@ jobs:
|
||||
path: |
|
||||
node_modules/.cache
|
||||
.astro/cache
|
||||
key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }}
|
||||
key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/bun.lockb') }}-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-
|
||||
${{ runner.os }}-astro-cache-${{ hashFiles('**/bun.lockb') }}-
|
||||
${{ runner.os }}-astro-cache-
|
||||
|
||||
- name: Lint Code
|
||||
run: pnpm lint
|
||||
run: bun run lint
|
||||
|
||||
- name: Build Project
|
||||
run: pnpm build
|
||||
run: bun run build
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-js
|
||||
|
||||
@@ -16,19 +16,13 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Set up pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
- name: Set up Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
version: 10.x
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 24.14.0
|
||||
cache: pnpm
|
||||
bun-version: 1.3.10
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Cache Astro Build Cache
|
||||
uses: actions/cache@v5
|
||||
@@ -36,16 +30,16 @@ jobs:
|
||||
path: |
|
||||
node_modules/.cache
|
||||
.astro/cache
|
||||
key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }}
|
||||
key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/bun.lockb') }}-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-
|
||||
${{ runner.os }}-astro-cache-${{ hashFiles('**/bun.lockb') }}-
|
||||
${{ runner.os }}-astro-cache-
|
||||
|
||||
- name: Lint Code
|
||||
run: pnpm lint
|
||||
run: bun run lint
|
||||
|
||||
- name: Build Project
|
||||
run: pnpm build
|
||||
run: bun run build
|
||||
|
||||
- name: ntfy Failed
|
||||
uses: niniyas/ntfy-action@master
|
||||
|
||||
Reference in New Issue
Block a user