fix(create-app): allowlist better-sqlite3 build in scaffold template
#28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Continuous Releases provided by https://pkg.pr.new | |
| # | |
| # Every push to main publishes preview packages keyed by commit SHA. Users | |
| # install with e.g. | |
| # npm i 'https://pkg.pr.new/Open-Athena/slidev/@slidev/cli@<sha>' | |
| # (any package manager). See README for the install pattern. | |
| name: CR (Continuous Releases) | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| cr: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| # Pinned to 22 (matching pages.yml): `better-sqlite3` has no prebuilt | |
| # binary for newer `lts/*` Nodes, so install falls back to a source | |
| # compile that hangs the runner. | |
| node-version: 22 | |
| - run: npm i -g @antfu/ni | |
| - run: nci | |
| - name: Build | |
| run: nr build | |
| - run: nlx pkg-pr-new publish './packages/create-app' './packages/client' './packages/create-theme' './packages/parser' './packages/slidev' './packages/types' --pnpm | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |