setup-node
setup-node copied to clipboard
Set up your GitHub Actions workflow with a specific version of node.js
- Added package.json in dist/setup to specify module type as ESM. - Updated jest.config.js to support ESM with ts-jest and added moduleNameMapper for .js extensions. - Created jest.setup.js to ensure...
**Description:** * Replaces uuid with crypto.randomUUID() * Similar to https://www.github.com/actions/toolkit/pull/1824 **Related issue:** Fixes: https://github.com/actions/setup-node/issues/1377 **Check list:** - [ ] Mark if documentation changes are required. - [ ] Mark if...
**Description:** Replace uuid with crypto.randomUUID() https://github.com/actions/setup-node/blob/89d709d423dc495668cd762a18dd4a070611be3f/src/distributions/base-distribution.ts#L1 **Justification:** crypto was added globally as follows: * v23.0.0 | No longer experimental. * v19.0.0 | No longer behind --experimental-global-webcrypto CLI flag. * v17.6.0,...
**Description:** Removes redundant test dependency 'jest-each' **Related issue:** N/A **Check list:** - [ ] Mark if documentation changes are required. - [ ] Mark if tests were added or updated...
**Description:** The PR follows #1348 with a bugfix and a very slight performance improvement. - Only enable package cache when the cache feature is available - In #1348 new `package-manager-cache`...
**Description:** Check for a cache hit before uploading. On a large codebase with a lot of dependencies, the upload can take some time. If you have a lot of concurrent...
Closes #1236 Closes #1114 Closes #940 **Description:** As extensively documented in #1236 and #940, the non-exact aliases `lts/*`, `*`, `current`, `latest`, and `22` are slow to be upgraded, lagging several...
**Description:** Add a new value `engineStrict` for the `node-version` config field, so it will pick the Node.js version number from `package.json` file `engineStrict` field. This will require that the repository...
**Description:** Currently the cache key is always the following format `node-cache-{platform}-{packageManager}-{fileHash(lockfile)}` I'd like a way to add a prefix between the packageManager and the file hash like `node-cache-{platform}-{packageManager}-{cachePrefix}-{fileHash(lockfile)}` **Justification:** We...
**Description:** I'd like to propose that we change the format of the `outputs.node-version` to not include `v`. **Justification:** The rational is that it's very easy to add the v with...