Sync nextjs examples to @arkenv/nextjs 0.1.6 #6784
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: autofix.ci # needed to securely identify the workflow | |
| on: | |
| pull_request: | |
| push: | |
| branches: ["dev", "v1"] | |
| permissions: | |
| contents: read | |
| jobs: | |
| autofix: | |
| runs-on: ubuntu-latest | |
| # Skip autofix for bot commits and Version Packages release pushes. | |
| # Paired with release.yml's autofix-ci[bot] sender guard: if autofix runs on | |
| # a Version Packages push and produces a fixup, the autofix.ci service | |
| # cancels the in-flight release; the re-triggered release is then skipped | |
| # by that guard — zero publishes. Removing either guard reopens a race | |
| # (stranding or double-publish). Autofix on those commits has no value | |
| # anyway (already autofixed on the changeset-release/* PR). | |
| # See docs/adr/0006-branching-and-release-flow.md. | |
| if: | | |
| github.event_name == 'pull_request' || | |
| (github.event_name == 'push' && github.event.sender.type != 'Bot' && github.event.head_commit != null && !contains(github.event.head_commit.message, 'Version Packages')) | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v6 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24 | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install | |
| # Note: We only skip manypkg for Changesets-driven version bumps. | |
| # This avoids touching versions that haven't been published yet, | |
| # while still letting autofix handle normal PRs and pushes. | |
| # (Version Packages pushes never reach this job — see job-level `if`.) | |
| - name: Decide if manypkg should be skipped | |
| env: | |
| HEAD_REF: ${{ github.event.pull_request.head.ref }} | |
| run: | | |
| SKIP_MANYPKG=false | |
| # Skip manypkg for Changesets PRs and automated Sync PRs | |
| if [ "${{ github.event_name }}" = "pull_request" ] && \ | |
| ([ "$HEAD_REF" = "changeset-release/dev" ] || [ "$HEAD_REF" = "dev" ] || [ "$HEAD_REF" = "changeset-release/v1" ] || [ "$HEAD_REF" = "v1" ]); then | |
| SKIP_MANYPKG=true | |
| fi | |
| echo "SKIP_MANYPKG=$SKIP_MANYPKG" >> "$GITHUB_ENV" | |
| - name: Fix linting issues | |
| run: node scripts/fix.js | |
| - uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8 |