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 }}
|
#environment: ${{ env.FORGEJO_REF_NAME }}
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: node:22
|
image: oven/bun:1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Cache node modules
|
- name: Cache bun modules
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
path: ~/.bun/install/cache
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-bun-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build Astro project
|
- name: Build Astro project
|
||||||
run: npm run build
|
run: bun run build
|
||||||
|
|
||||||
- name: Deploy dist to dist-${{ env.FORGEJO_REF_NAME }}
|
- name: Deploy dist to dist-${{ env.FORGEJO_REF_NAME }}
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue