Skip to content

feat: add GitHub Pages deploy workflow with pnpm #2

feat: add GitHub Pages deploy workflow with pnpm

feat: add GitHub Pages deploy workflow with pnpm #2

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- run: pnpm run build
- uses: actions/upload-pages-artifact@v3
with:
path: ./dist
- id: deployment
uses: actions/deploy-pages@v4