ci(deps): bump actions/setup-node from 6.4.0 to 7.0.0 #87
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: CI | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| # Check only — forks and Dependabot (no write access to push fixes) | |
| - name: Lint (check only — forks and Dependabot) | |
| if: | | |
| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login != github.repository_owner) || | |
| contains(github.actor, 'dependabot') | |
| run: pnpm run lint | |
| # Auto-fix + commit — push to main or human PRs from same repo | |
| - name: Lint (auto-fix) | |
| if: | | |
| !contains(github.actor, 'dependabot') && | |
| (github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner) | |
| run: pnpm run lint:fix || true | |
| - name: Commit lint fixes | |
| if: | | |
| !contains(github.actor, 'dependabot') && | |
| (github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner) | |
| env: | |
| HEAD_REF: ${{ github.head_ref }} | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| if git diff --quiet; then | |
| echo "No lint fixes needed." | |
| exit 0 | |
| fi | |
| git add -A | |
| git commit -m "chore(lint): biome auto-fix" | |
| # actions/checkout leaves a detached HEAD on PR events. | |
| # Push back to the source branch explicitly; --force-with-lease | |
| # prevents overwriting concurrent pushes that aren't ours. | |
| if [ -n "$HEAD_REF" ]; then | |
| git push origin "HEAD:${HEAD_REF}" --force-with-lease | |
| else | |
| git push | |
| fi | |
| smoke: | |
| name: Smoke Test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - run: pnpm -r build |