Port to bun
This commit is contained in:
+12
-21
@@ -3,7 +3,7 @@ name: Deploy static content to Pages
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches: [ 'main' ]
|
||||
branches: [ "main", "master" ]
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -13,9 +13,10 @@ permissions:
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: 'pages'
|
||||
group: "pages"
|
||||
cancel-in-progress: false
|
||||
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -24,39 +25,29 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
- run: npm install --frozen-lockfile
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
- run: bun install --include=dev
|
||||
- name: Build project
|
||||
run: npm run check-all
|
||||
run: bun run check-all
|
||||
|
||||
deploy:
|
||||
needs: check
|
||||
if: github.ref == 'refs/heads/main'
|
||||
environment:
|
||||
name: github-pages
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/main'
|
||||
env:
|
||||
BASE: /osmfilter/
|
||||
VITE_ROUTER: hash
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
- run: npm install --frozen-lockfile
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
- run: bun install --include=dev
|
||||
- name: Build project
|
||||
run: npm run build-only
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: './dist'
|
||||
run: bun run build-only
|
||||
- name: Minio Deploy
|
||||
uses: passidel/minio-deploy-action@v1
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user