microsoft / azure-pipelines-task-lib

Libraries for writing VSTS and TFS build tasks
https://aka.ms/tfbuild
MIT License
404 stars 266 forks source link

Add runner for Node 20 LTS #1043

Open ncook-hxgn opened 1 month ago

ncook-hxgn commented 1 month ago

Please check our current Issues to see if someone already reported this https://github.com/Microsoft/azure-pipelines-task-lib/issues

Environment

azure-pipelines-task-lib version: 4.3.1

Issue Description

Please provide a node20 task runner

Expected behaviour

I'd like a node20 task runner to run node 20 code.

Actual behaviour

There are runners node, node10, and node16, representing LTS releases of NodeJS.

Logs

Don't get me wrong, my code works fine. I may be misunderstanding, but I'd just like to see a node runner for each nodelts release.

gitnubster commented 1 week ago

I would like to see this also. As far the tasks.schema.json concerns, the execution handler Node20_1 does not exist. (While it does at agent side.) In a task I have:

"$schema": "https://raw.githubusercontent.com/Microsoft/azure-pipelines-task-lib/master/tasks.schema.json",
"execution": {
    "Node20_1": {
      "target": "$(currentDirectory)/taskfile.js",
      "argumentFormat": "",
      "workingDirectory": "$(currentDirectory)"
    }
  }

And VSCode shows: Property Node20_1 is not allowed.