Approve rebuild in gha #170
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
| name: cd | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| cd: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| run_install: false | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install | |
| # required for rebuild of bindings | |
| - name: Rebuild better-sqlite3 | |
| run: pnpm rebuild better-sqlite3 | |
| # https://github.com/WiseLibs/better-sqlite3/issues/1331 | |
| - name: Approve rebuild better-sqlite3 | |
| run: pnpm approve-builds | |
| - name: Generate static files | |
| run: pnpm generate | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./dist |