refactor: use generic constraints to fix @cloudflare/workers-types version conflicts
#82
Workflow file for this run
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: Build Example (OpenNextJS) | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "package.json" | |
| - "src/**" | |
| - "tsconfig.json" | |
| - "examples/opennextjs/**" | |
| - ".github/workflows/build-example.yml" # This file | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "package.json" | |
| - "src/**" | |
| - "tsconfig.json" | |
| - "examples/opennextjs/**" | |
| - ".github/workflows/build-example.yml" # This file | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.10.0 | |
| run_install: false | |
| - name: Install root dependencies | |
| run: pnpm install | |
| - name: Build root package | |
| run: pnpm build | |
| - name: Install example dependencies | |
| working-directory: examples/opennextjs | |
| run: pnpm install | |
| - name: Build Example (OpenNextJS) | |
| working-directory: examples/opennextjs | |
| run: pnpm build:cf |