Skip to content

chore: pin the Node version in .nvmrc and read it from CI (closes #93) - #217

Open
dchaudhari7177 wants to merge 1 commit into
stellar-compliance-kit:mainfrom
dchaudhari7177:chore/add-nvmrc
Open

chore: pin the Node version in .nvmrc and read it from CI (closes #93)#217
dchaudhari7177 wants to merge 1 commit into
stellar-compliance-kit:mainfrom
dchaudhari7177:chore/add-nvmrc

Conversation

@dchaudhari7177

Copy link
Copy Markdown

Closes #93.

Adds a root .nvmrc so nvm use gives contributors the same Node that CI runs, and points actions/setup-node at it via node-version-file — in both workflow jobs, not just the first.

Pinned to 20, matching the version CI already used and the engines.node floor of >=20.0.0 in package.json.

One judgement call

Both test-unit and test-e2e carried a single-entry node-version: [20.x] matrix. I removed them rather than leaving them alongside the new file — keeping both would mean two places to bump, which is exactly the drift .nvmrc exists to prevent.

No build coverage is lost: the matrix had one entry. If a real multi-version matrix is wanted later it can come back, with .nvmrc still serving as the local default. Happy to restore it if you'd rather keep the matrix shape.

CONTRIBUTING.md's "TypeScript, Node 20+" line now points at .nvmrc for the exact version.

Verified the workflow still parses (yaml.safe_load) and that no strategy: block remains in either job.

🤖 Generated with Claude Code

…llar-compliance-kit#93)

Adds a root .nvmrc so `nvm use` gives contributors the same Node CI runs, and
points actions/setup-node at it via node-version-file in both workflow jobs.

Pinned to 20, matching the version CI already used and the `engines.node`
floor of >=20.0.0 in package.json.

Both jobs previously carried a single-entry `node-version: [20.x]` matrix.
Those are removed rather than left alongside the file: keeping them would mean
two places to bump, which is exactly the drift .nvmrc is meant to prevent. The
matrix had one entry, so no build coverage is lost - if a real multi-version
matrix is wanted later, .nvmrc still serves as the local default.

CONTRIBUTING's "Node 20+" line now points at .nvmrc as the exact version.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a root .nvmrc pinning the Node version

2 participants