feat: add eslint 8 to 9 migration #68
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: Release | |
| on: | |
| push: | |
| branches: ['main'] | |
| env: | |
| FORCE_COLOR: 1 | |
| jobs: | |
| test-and-deploy: | |
| name: Test and Deploy | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| concurrency: ${{ github.workflow }} | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: 'pnpm' | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile --child-concurrency=10 | |
| - name: Check | |
| run: pnpm check:ci | |
| - name: Test | |
| run: pnpm test:ci | |
| - name: Deploy | |
| run: pnpm turbo deploy | |
| env: | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| create-release-pr: | |
| # For Workers, we always deploy on commits to main. | |
| # Release PRs are for adding changelogs only (for convenience) | |
| name: Create Release PR | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| concurrency: ${{ github.workflow }}-create-release-pr | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: 'pnpm' | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile --child-concurrency=10 --filter . | |
| - name: Create Release PR | |
| uses: changesets/action@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |