CI workflows should be precise, minimal, and predictable:
on: pull_request.paths (avoid overly broad selectors like **/*.js unless required). If the PR doesn’t touch dependency inputs, the lockfile validation workflow shouldn’t run.pnpm-lock.yaml unless the PR actually changes what would require regeneration; this reduces merge-conflict risk.permissions are set at the correct (job) level.author_name/author_email to the GitHub Actions bot identity.Example trigger narrowing:
on:
pull_request:
paths:
- 'pnpm-lock.yaml'
- '**/package.json'
# Avoid adding broad patterns like '**/*.js' unless lockfile validation is truly needed for those changes.
Enter the URL of a public GitHub repository