setup-node
setup-node copied to clipboard
Set up your GitHub Actions workflow with a specific version of node.js
**Description:** Please add outputs to the action, such as `npm-path`. The `setup-python` action does this: https://github.com/actions/setup-python/blob/f677139bbe7f9c59b41e40162b753c062f5d49a3/action.yml#L34 At a minimum, printing the locations to the log would be helpful. **Justification:** I...
**Description:** Currently the cache key is always `node-cache-{platform}-{packageManager}-{fileHash(lockfile)}`, which means the cache is invalid if any one dependency changed. I want to achieve something like [this `restore-keys`](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:~:text=the%20workspace%20directory.-,restore%2Dkeys,-%3A%20Optional%20A): ```yaml restore-keys: |...
**Description:** Bumps @action/cache from 4.0.2 to 4.0.3
Fixes: https://github.com/actions/setup-node/issues/1150 Fixes: https://github.com/actions/setup-node/issues/730
**Description:** Allow specifying the sha256 of the node binary in addition to the node version. If the asset fails to match the expected sha256, we should error. If specifying the...
Description: This PR introduces a new mirror-url parameter that allows users to specify a custom mirror for downloading Node.js. This feature provides flexibility for environments where the default Node.js download...
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.1.2 to 29.2.6. Release notes Sourced from ts-jest's releases. v29.2.6 Please refer to CHANGELOG.md for details. v29.2.5 Please refer to CHANGELOG.md for details. v29.2.4 Please refer to...
**Description:** `devEngines` field is now supported by npm and corepack. If user set `node-version-file: package.json` in yaml, `setup-node` action should consult both `engines` and `devEngines` fields, while currently only `engines`...
**Description:** Add support for determining the Node version from the `use-node-version` key of `.npmrc` as described in the [PNPM docs](https://pnpm.io/npmrc#use-node-version). **Related issue:** Resolves #1130 **Check list:** - [ ] Mark...
**Description:** Add `node-version-file` support for determining the Node version from the `use-node-version` key of a `.npmrc` file. See the [PNPM docs](https://pnpm.io/npmrc#use-node-version). Here's an example `.npmrc` file: ```.npmrc use-node-version=23.10.0 ``` **Related...