Skip to content

add missing setup pnpm step #2

add missing setup pnpm step

add missing setup pnpm step #2

Workflow file for this run

name: Deploy content to Github Pages
on:
push:
branches: ['master']
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
env:
VITE_BASE_URL: ${{secrets.VITE_BASE_URL}}
VITE_GH_TOKEN: ${{secrets.VITE_GH_TOKEN}}
jobs:
deploy:
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: pnpm-setup
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Nodejs
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install deps
run: pnpm
- name: Build
run: pnpm build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './dist'
- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@v2