When touching CI/CD workflows, keep execution deterministic and CI stable:
test:ci again in the workflow.on: branch filters already restrict when a workflow/job runs, don’t keep extra if: checks that always evaluate the same way.pnpm-lock.yaml. If it changed accidentally (wrong pnpm version, etc.), reset it back to the target branch.CODECOV_TOKEN) and supported action versions.Example (remove redundant if when triggers already constrain branches):
on:
push:
branches: ['main', 'alpha', 'beta', 'rc']
jobs:
test-and-publish:
# No extra `if:` needed here; branch filter already limits execution
runs-on: ubuntu-latest
steps:
- run: pnpm run test:pr --parallel=3
Enter the URL of a public GitHub repository