chore(deps): update all non-major dependencies #29
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: deploy-preview | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| preview: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - run: pnpm install | |
| - name: Build | |
| run: pnpm build | |
| env: | |
| NITRO_PRESET: cloudflare-module | |
| CLOUDFLARE_ENV: preview | |
| NODE_OPTIONS: --max-old-space-size=4096 | |
| - name: Upload Preview Version | |
| id: preview | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| workingDirectory: .output | |
| preCommands: wrangler d1 migrations apply DB --remote --config server/wrangler.json --env preview | |
| command: versions upload --env preview | |
| - name: Comment Preview URL | |
| uses: marocchino/sticky-pull-request-comment@v3 | |
| with: | |
| header: deploy-preview | |
| message: | | |
| **Preview Deployment** | |
| ${{ steps.preview.outputs.deployment-url }} |