Skip to content

Why does node version not follow the actions/setup-node? #241

@hellodword

Description

@hellodword

v5 only use node v12, and the setup-node does not work.

I found the pr #235 and tried it with uses: actions/github-script@master, now it always use node v16.

As this issue comment said

Unless actions/setup-node is explicitly used, for our hosted runners, the version of Node.js will be whatever is installed in the virtual environment you're using (for example ubuntu-latest). This is documented in "Software installed on GitHub-hosted runners". For example, the current ubuntu-latest, which is 18.04, uses Node.js 12.18.3.

I think this is the best way.

Or is there any security considering that I don't know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionA question on how to use this action

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions