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

Update @types/node to Node 20 #443

Merged
merged 1 commit into from Mar 25, 2024
Merged

Conversation

jozefizso
Copy link
Contributor

This finished changes from #440 so the types definitions are used from the Node 20 release.

Fixes #439

Signed-off-by: Jozef Izso <izso@cisco.com>
@@ -0,0 +1 @@
20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this .nvmrc necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It allows tooling to switch to and use the correct Node runtime for the project (eg. in VS Code, Terminal, GitHub Actions).

https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/nvm
https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#node-version-file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understand it, the action.yml defines the node version used when it executes, does it not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The action.yml uses its own config to set NodeJS version.

The .nvmrc is for tooling, eg. VS Code.

@kzantow kzantow merged commit 31e2bb2 into anchore:main Mar 25, 2024
6 checks passed
@jozefizso jozefizso deleted the 439_actions_node20 branch March 25, 2024 19:12
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.

Node.js 16 actions are deprecated
2 participants