migrated to bun and also updated the gh actions

This commit is contained in:
2025-10-24 18:59:09 +02:00
parent 65473a085a
commit a2cd25bf5f
4 changed files with 64 additions and 5660 deletions

View File

@@ -5,31 +5,34 @@ on:
branches: ["main"] # Replace with your default branch if different branches: ["main"] # Replace with your default branch if different
jobs: jobs:
deploy: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*" # Uses the latest LTS version
- name: Install dependencies - name: Install dependencies
run: npm install run: bun install
- name: Build - name: Build
run: npx vite build run: bun run build
- name: Move dist to public - name: Upload Artifact
run: | uses: actions/upload-pages-artifact@v3
rm -rf public with:
mv dist public path: dist
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
permissions: deploy:
contents: read needs: build
runs-on: ubuntu-latest
permissions:
pages: write pages: write
id-token: write id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

BIN
bun.lockb Executable file

Binary file not shown.

View File

@@ -5,8 +5,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build:app": "vue-tsc && vite build", "build": "vite build",
"build": "pnpm build:app && pnpm build:sw",
"preview": "vite preview", "preview": "vite preview",
"build:sw": "workbox generateSW workbox-config.js" "build:sw": "workbox generateSW workbox-config.js"
}, },

5598
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff