setup-node icon indicating copy to clipboard operation
setup-node copied to clipboard

Set up your GitHub Actions workflow with a specific version of node.js

Results 181 setup-node issues
Sort by recently updated
recently updated
newest added

**Description:** Describe your changes. **Related issue:** Add link to the related issue. **Check list:** - [x] Mark if documentation changes are required. - [x] Mark if tests were added or...

**Description:** as in [setup python](https://github.com/actions/setup-python/blob/82c7e631bb3cdc910f68e0081d67478d79c6982d/src/setup-python.ts#L79) ``` if (IS_MAC) { process.env['AGENT_TOOLSDIRECTORY'] = '/Users/runner/hostedtoolcache'; } if (process.env.AGENT_TOOLSDIRECTORY?.trim()) { process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY']; } core.debug( `Python is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}` );...

feature request

**Description:** Getting a strange error in the "Post setup node.js" step in my GitHub workflow. I ran the workflow with debugging enabled and this step fails with this error: ```...

bug

Description: This PR will fix the path-to-regexp outputs backtracking regular expressions from the below dependabot high security alerts. Related issue: [#32](https://github.com/actions/setup-node/security/dependabot/32) [#33](https://github.com/actions/setup-node/security/dependabot/33) [#34](https://github.com/actions/setup-node/security/dependabot/34) [#35](https://github.com/actions/setup-node/security/dependabot/35) [#36](https://github.com/actions/setup-node/security/dependabot/36) Check list: - [ ]...

**Description:** Using `latest` in the `node-version` option makes the action return code 1 without any errors, not even with debug prints on **Action version:** 4.0.3 **Platform:** - [X] Ubuntu -...

bug

**Description:** Add cache restore key for all package managers. According to github cache document [action/cache npm cache](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#input-parameters-for-the-cache-action) npm can use restore key to improve cache restore. And [yarn](https://github.com/actions/cache/blob/main/examples.md#node---yarn) and [yarn2](https://github.com/actions/cache/blob/main/examples.md#node---yarn-2)...

**Description:** Allow `node-version-file` value of `.npmrc` and read `use-node-version` key **Justification:** This method of defining is quite popular, and is documented for use by pnpm https://pnpm.io/npmrc#use-node-version **Are you willing to...

feature request

**Description:** While the `cache-hit` output tells us whether a cache was found, the action currently does not expose which "cache key" was used. **Justification:** A `cache-key` could be helpful to...

feature request

**Description:** Since nvm [v0.40.0](https://github.com/nvm-sh/nvm/releases/tag/v0.40.0) `.nvmrc` may contain comments. [[New] allow .nvmrc files to support comments](https://github.com/nvm-sh/nvm/commit/29dce5edfd0976f9a1728c5746715c24061fd404) **Action version:** v4.0.3 **Repro steps:** ``` - uses: actions/[email protected] with: node-version-file: .nvmrc ``` .nvmrc ```...

feature request