Skip to content

Merge pull request #109 from eryue0220/dependabot/npm_and_yarn/vitest… #90

Merge pull request #109 from eryue0220/dependabot/npm_and_yarn/vitest…

Merge pull request #109 from eryue0220/dependabot/npm_and_yarn/vitest… #90

Workflow file for this run

name: Deploy Playground
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v5
with:
version: 9.15.0
- uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
- name: Configure Pages
if: github.event_name != 'pull_request'
uses: actions/configure-pages@v5
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build Playground
run: pnpm build
- name: Upload static artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v4
with:
path: playground/out
deploy:
if: github.event_name != 'pull_request'
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4