Skip to content

Merge pull request #234 from arethetypeswrong/changeset-release/main #230

Merge pull request #234 from arethetypeswrong/changeset-release/main

Merge pull request #234 from arethetypeswrong/changeset-release/main #230

Workflow file for this run

name: Deploy Site
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: 21
- uses: pnpm/action-setup@v2
with:
version: latest
run_install: false
- id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- run: pnpm install
- run: pnpm build
- run: pnpm test
- uses: actions/upload-pages-artifact@v1
with:
path: ./packages/web/dist
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v1
id: deploy