Releases: actions/setup-node
v3.7.0
What's Changed
In scope of this release we added a logic to save an additional cache path for yarn 3 (related pull request and feature request). Moreover, we added functionality to use all the sub directories derived from cache-dependency-path
input and add detect all dependencies directories to cache (related pull request and feature request).
Besides, we made such changes as:
- Replace workflow badge with new badge by @jongwooo in #653
- Fix a minor typo by @phanan in #662
- docs: fix typo in advanced-usage.md by @remarkablemark in #697
- bugfix: Don't attempt to use Windows fallbacks on non-Windows OSes by @domdomegg in #718
- Update to node 18.x by @feelepxyz in #751
- Remove implicit dependencies by @nikolai-laevskii in #758
- Fix description about ensuring workflow access to private package by @x86chi in #704
New Contributors
- @jongwooo made their first contribution in #653
- @phanan made their first contribution in #662
- @remarkablemark made their first contribution in #697
- @domdomegg made their first contribution in #718
- @feelepxyz made their first contribution in #751
- @nikolai-laevskii made their first contribution in #758
- @x86chi made their first contribution in #704
Full Changelog: v3...v3.7.0
Update @actions/core for v2
In scope of this release we updated actions/core to 1.10.0 and actions/tool-cache to 1.7.2 for v2: #713
Add Support for Nightly, Canary and RC builds for Node.js
In scope of this release we added support to download nightly, rc (#611) and canary (#619) Node.js distributions.
For nightly versions:
jobs:
build:
runs-on: ubuntu-latest
name: Node sample
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16-nightly'
- run: npm ci
- run: npm test
For canary versions:
jobs:
build:
runs-on: ubuntu-latest
name: Node sample
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16-v8-canary’
- run: npm ci
- run: npm test
For rc versions:
jobs:
build:
runs-on: ubuntu-latest
name: Node sample
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.0.0-rc.1’
- run: npm ci
- run: npm test
Note: For more examples please refer to documentation.
Besides, we added the following changes as:
Update @actions/core and Print Node, Npm, Yarn versions
In scope of this release we updated actions/core to 1.10.0. Moreover, we added logic to print Nodejs, Npm, Yarn versions after installation.
Add support for engines.node and Volta
In scope of this release we add support for engines.node. The action will be able to grab the version form package.json#engines.node. #485. Moreover, we added support for Volta
Besides, we updated @actions/core to 1.9.1 and @actions/cache to 3.0.4
Fix pnpm output and node-version output issues
Add support for asdf format and update actions/cache version to 3.0.0
In scope of this release we updated actions/cache
package as the new version contains fixes for caching error handling. Moreover, we added support for asdf format as Node.js version file #373. Besides, we introduced new output node-version and added npm-shrinkwrap.json
to dependency file patterns: #439
Add support for lts/-n aliases
In scope of this release we added support for lts/-n
aliases, improve logic for current
, latest
and node
aliases to handle them from toolcache
, update ncc
package.
Support of lts/-n aliases
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/-1
- run: npm ci
- run: npm test
Minor improvements
Add current, node, latest aliases
In scope of this release we added new aliases to install the latest Node.js version. #483
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: current
- run: npm ci
- run: npm test
Update actions/cache version to 2.0.2
In scope of this release we updated actions/cache
package as the new version contains fixes related to GHES 3.5 (#460)