name: CI on: push: branches: [main, scaffold/archive-gen-0] pull_request: branches: [main, scaffold/archive-gen-0] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Setup pnpm uses: pnpm/action-setup@v4 with: version: 9 - name: Setup Node uses: actions/setup-node@v4 with: node-version: 20 cache: 'pnpm' - name: Install dependencies run: pnpm install - name: Lint run: pnpm lint - name: Test run: pnpm test - name: Build run: pnpm build - name: Upload dist if: success() uses: actions/upload-artifact@v4 with: name: dist path: dist - name: Deploy to GitHub Pages if: github.ref == 'refs/heads/main' uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./dist