Releases: actions/setup-node
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)
Add caching support on GHES 3.5
In scope of this release we added support for caching from GHES 3.5 and fixed download issue for files > 2GB during restore. Besides, we updated actions/cache
dependency to 2.0.0 version.