Skip to content

Add versionFilePath to UseNode@1#22189

Open
bdukes wants to merge 1 commit into
microsoft:masterfrom
bdukes:usenode-fromfile
Open

Add versionFilePath to UseNode@1#22189
bdukes wants to merge 1 commit into
microsoft:masterfrom
bdukes:usenode-fromfile

Conversation

@bdukes
Copy link
Copy Markdown

@bdukes bdukes commented May 19, 2026

Context

Fixes #22131


Task Name

UseNode@1


Description

Adds a versionFilePath input to UseNode@1 so that version specs can be stored in a file (e.g. .nvmrc or .node-version), instead of duplicated in the Pipelines config.


Risk Assessment (Low / Medium / High)

Low. This change is backwards compatible and requires a developer to opt in to using the new input.


Change Behind Feature Flag (Yes / No)

This adds a new input field, I don't know whether or not that can be feature flagged.


Tech Design / Approach

This approach used the same basic idea as NodeTool@0 and UseDotnet@2


Documentation Changes Required (Yes/No)

Yes, there is a new input field.


Unit Tests Added or Updated (Yes / No)

No


Additional Testing Performed

Verified automated tests did not have additional failures.


Logging Added/Updated (Yes/No)

No


Telemetry Added/Updated (Yes/No)

No


Rollback Scenario and Process (Yes/No)

No


Dependency Impact Assessed and Regression Tested (Yes/No)

No


Checklist

  • Related issue linked (if applicable)
  • Task version was bumped — see versioning guide
  • Verified the task behaves as expected

@bdukes bdukes requested review from a team and tarunramsinghani as code owners May 19, 2026 17:48
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.

[enhancement]: Add support for reading the version from a file (eg. .nvmrc) to UseNode@1 Task similar to NodeTool@0

1 participant