switch to bun
All checks were successful
/ depoly (push) Successful in 1m16s

This commit is contained in:
thislight 2024-08-05 14:12:33 +08:00
parent d0feb118c9
commit cd02dc2053
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E
4 changed files with 12 additions and 5540 deletions

View file

@ -13,27 +13,29 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
run: |
corepack install
pnpm config set store-dir /tmp/pnpm-store
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version-file: 'package.json'
- name: Cache Dependencies
id: dependencies-cache
uses: actions/cache@v4
with:
path: /tmp/pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install Dependencies
run: pnpm i
run: bun install
- name: Build Dist (Staging)
run: pnpm dist -m staging
run: bun dist -m staging
if: env.GITHUB_REF_NAME == 'master'
- name: Build Dist
run: pnpm dist
run: bun dist
if: env.GITHUB_REF_NAME != 'master'
- name: Depoly to Preview