npm to bun
This commit is contained in:
parent
9aa761455f
commit
4627ace8a9
1 changed files with 7 additions and 7 deletions
|
|
@ -10,25 +10,25 @@ jobs:
|
|||
#environment: ${{ env.FORGEJO_REF_NAME }}
|
||||
|
||||
container:
|
||||
image: node:22
|
||||
image: oven/bun:1
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Cache node modules
|
||||
- name: Cache bun modules
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
path: ~/.bun/install/cache
|
||||
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
${{ runner.os }}-bun-
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Build Astro project
|
||||
run: npm run build
|
||||
run: bun run build
|
||||
|
||||
- name: Deploy dist to dist-${{ env.FORGEJO_REF_NAME }}
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue