Sourced from actions/setup-node's releases.
Add support for asdf format and update actions/cache version to 3.0.0
In scope of this release we updated
actions/cachepackage as the new version contains fixes for caching error handling. Moreover, we added support for asdf format as Node.js version file actions/setup-node#373. Besides, we introduced new output node-version and addednpm-shrinkwrap.jsonto dependency file patterns: actions/setup-node#439Update actions/cache version to 2.0.2
In scope of this release we updated
actions/cachepackage as the new version contains fixes related to GHES 3.5 (actions/setup-node#460)v3.0.0
In scope of this release we changed version of the runtime Node.js for the setup-node action and updated package-lock.json file to v2.
Breaking Changes
- With the update to Node 16 in actions/setup-node#414, all scripts will now be run with Node 16 rather than Node 12.
- We removed deprecated
versioninput (actions/setup-node#424). Please usenode-versioninput instead.Update
@actions/corefor v2In scope of this release we updated actions/core to 1.10.0 and actions/tool-cache to 1.7.2 for v2: actions/setup-node#713
Fix logic of error handling for npm warning and uncaught exception
In scope of this release we fix logic of error handling related to caching (actions/setup-node#358) and (actions/setup-node#359).
In the previous behaviour we relied on
stderroutput to throw error. The warning messages from package managers can be written to the stderr's output. For now the action will throw an error only if exit code differs from zero. Besides, we add logic to сatch and log unhandled exceptions.Adding Node.js version file support
In scope of this release we add the
node-version-fileinput and updateactions/cachedependency to the latest version.Adding Node.js version file support
The new input (
node-version-file) provides functionality to specify the path to the file containing Node.js's version with such behaviour:
- If the file does not exist the action will throw an error.
- If you specify both
node-versionandnode-version-fileinputs, the action will use value from thenode-versioninput and throw the following warning:Both node-version and node-version-file inputs are specified, only node-version will be used.- For now the action does not support all of the variety of values for Node.js version files. The action can handle values according to the documentation and values with
vprefix (v14)steps: - uses: actions/checkout@v2 - name: Setup node from node version file uses: actions/setup-node@v2 with: node-version-file: '.nvmrc' - run: npm install - run: npm testUpdate actions/cache dependency to 1.0.8 version.
We updated actions/cache dependency to the latest version (1.0.8). For more information please refer to the toolkit/cache.
Add "cache-hit" output
This release introduces a new output:
cache-hit(#327).The
cache-hitoutput contains boolean value indicating that an exact match was found for the key. It shows that the action uses already existing cache or not. The output is available only if cache is enabled.Support caching for mono repos and repositories with complex structure
... (truncated)
64ed1c7
Add support for v8-canary, nightly and rc (#655)92a57f4
Merge pull request #650
from actions/update-code-owners99e61d6
Update CODEOWNERS3e8819f
Merge pull request #649
from actions/update-codeowners8cd2fb2
Update CODEOWNERSc406543
Merge pull request #647
from akv-platform/apply-reusable-workflows92a07fe
Fix review points217387c
Update action to use reusable-workflows repo2db3663
Merge branch 'main' of https://github.com/akv-platform/setup-node
into apply-...bbe2ac7
Fix typo in README (#646)