Skip to content

Releases: actions/setup-node

Support caching dependencies and LTS aliases

30 Jun 13:18
38d90ce
Compare
Choose a tag to compare

This release brings two major features:

Supported version syntax

The node-version input supports the following syntax:

major versions: 12, 14, 16
more specific versions: 10.15, 14.2.0, 16.3.0
nvm LTS syntax: lts/erbium, lts/fermium, lts/*

Caching dependencies

The action has a built-in functionality for caching and restoring npm/yarn dependencies. Supported package managers are npm, yarn. The cache input is optional, and caching is turned off by default.

Caching npm dependencies:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
  with:
    node-version: '14'
    cache: 'npm'
- run: npm install
- run: npm test

Caching yarn dependencies:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
  with:
    node-version: '14'
    cache: 'yarn'
- run: yarn install
- run: yarn test

Yarn caching handles both yarn versions: 1 or 2.

At the moment, only lock files in the project root are supported.

v2.1.5 Release

22 Feb 15:13
46071b5
Compare
Choose a tag to compare

Improve error and warning line number handling (problem matcher regex)

v2.1.4

16 Dec 09:51
c46424e
Compare
Choose a tag to compare

The first stable release of actions/setup-node V2

v2.1.3 (beta)

10 Dec 15:28
27082ce
Compare
Choose a tag to compare
Pre-release
  • Add support for specifying architecture of Node.JS

v2.1.2 (beta)

01 Oct 16:15
c6fd00c
Compare
Choose a tag to compare
Pre-release
  • Updated communication with runner to use environment files rather then workflow commands

v1.4.4

01 Oct 16:14
56899e0
Compare
Choose a tag to compare
  • Updated communication with runner to use environment files rather then workflow commands

v1.4.3

11 Aug 18:53
4bb8c45
Compare
Choose a tag to compare

This release includes vendored licenses for this action's npm dependencies.

v2.1.1 (beta)

21 Jul 15:49
321b6cc
Compare
Choose a tag to compare
Pre-release

Switch to main branch of node-versions repository to consume latest added versions.

v2.1.0 (beta)

29 Jun 19:09
1ae8f4b
Compare
Choose a tag to compare
Pre-release

Added check-latest input option to query the versions manifest for latest version before checking for semver match in local VM cache first (the default). That's useful for ensuring you get latest as soon as it's released to the cache but at the cost of perf / reliability (much more likely to incur and download and extract).

v2.0.0 (beta)

19 May 13:39
e434342
Compare
Choose a tag to compare
v2.0.0 (beta) Pre-release
Pre-release

This is a beta release.

  • Downloads LTS versions from node-versions releases for reliability. Falls back to nodejs.org dist on misses or failures
  • Full semver spec support
  • Support for upcoming GHES