Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
backend ruleP2universalStack: GitHub Actions
cinodeconfigurationdry
Pin the CI Node version from .nvmrc instead of hardcoding it
Use setup-node's node-version-file pointing at .nvmrc so the CI Node version stays in sync with the repo's declared version automatically.
PR: hegnar-zephr-components · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codeyaml
| 1 | - uses: actions/setup-node@v4 |
| 2 | with: |
| 3 | node-version: 20 |
Explanation (EN)
Objašnjenje (HR)
Good example
New codeyaml
| 1 | - uses: actions/setup-node@v4 |
| 2 | with: |
| 3 | node-version-file: '.nvmrc' |
Explanation (EN)
Objašnjenje (HR)