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

BIN
bun.lockb Executable file

Binary file not shown.

View file

@ -42,5 +42,5 @@
"solid-js": "^1.8.18",
"solid-styled": "^0.11.1"
},
"packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903"
"packageManager": "bun@1.1.21"
}

File diff suppressed because it is too large Load diff