Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add runner for Node 20 LTS #1043

Closed
ncook-hxgn opened this issue Jun 11, 2024 · 4 comments
Closed

Add runner for Node 20 LTS #1043

ncook-hxgn opened this issue Jun 11, 2024 · 4 comments

Comments

@ncook-hxgn
Copy link

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
Copy link

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.

@Herve-M
Copy link

Herve-M commented Aug 9, 2024

For the curious one:
Runner updates for Node20:

task-lib update for Node20:

It seems that Node20_1 is usable as this task use it already: https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/NotationV0/task.json

@Herve-M
Copy link

Herve-M commented Sep 4, 2024

According to this Azure DevOps changelog it has been released even if the diff. PR are still open..

See how-to notes.

@ncook-hxgn
Copy link
Author

Docs look good, can't wait to use the node20 runner :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants