Skip to content

chore: update pnpm #214

chore: update pnpm

chore: update pnpm #214

Workflow file for this run

name: "Build (& Deploy)"
on: push
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Install dependencies
run: pnpm install
- name: Build project
run: |
cd packages/design-system
pnpm build:ladle --base="/${{ github.event.repository.name }}/"
echo "" > build/.nojekyll
- name: Upload production-ready build files
uses: actions/upload-artifact@v4
with:
name: production-files
path: ./packages/design-system/build
deploy:
name: deploy
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: production-files
path: ./build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build