cols-agent-tasks icon indicating copy to clipboard operation
cols-agent-tasks copied to clipboard

Fix Replace Tokens task Node.js compatibility for Azure Pipelines agents

Open Copilot opened this issue 4 months ago • 3 comments

The Replace Tokens task was failing on Azure Pipelines due to a Node.js version compatibility issue. The task was configured to use Node16 execution target but modern Azure Pipelines agents now use Node.js 20+, causing the task to fail when users upgraded from version 1.2.114 to 1.2.162.

Changes Made

  • Updated execution target from Node16 to Node20 in task.json
  • Incremented patch version from 1.2.28 to 1.2.29
"execution": {
-  "Node16": {
+  "Node20": {
     "target": "replaceTokens.js",
     "argumentFormat": ""
   }
}

Testing

All existing tests continue to pass and now correctly use Node.js v20.13.1 instead of v16.20.2, confirming the compatibility fix works as expected.

This resolves the issue where users were unable to downgrade to previous versions and experienced failures even after upgrading their Node.js environment to version 23.x.

Fixes #218.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot avatar Aug 12 '25 15:08 Copilot

@colindembovsky 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

Copilot avatar Aug 12 '25 15:08 Copilot

@colindembovsky, any indication when this PR gets merged? This should resolve our warnings in the Pipelines.

Thijs153 avatar Sep 16 '25 07:09 Thijs153

Any updates on getting this released?

smpaif avatar Oct 29 '25 08:10 smpaif