Skip to content

switch from pnpm to bun (#111) #142

switch from pnpm to bun (#111)

switch from pnpm to bun (#111) #142

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
actions: read
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: 10
- name: Use Bun
uses: oven-sh/setup-bun@v2
- name: Install Dependencies
run: bun install
- name: Install Playwright (for MermaidJS)
run: bun playwright install --with-deps chromium
- name: Build Website
run: bun run build
- name: Upload Built Website
uses: actions/upload-pages-artifact@v3
with:
path: ./dist/
deploy:
needs:
- build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
timeout-minutes: 10
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4