Skip to content

Releases: actions/setup-node

Add Support for Nightly, Canary and RC builds for Node.js

05 Jan 14:09
64ed1c7
Compare
Choose a tag to compare

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:

  • Updated minimatch: #608
  • Fixed extra newline character in version output when reading from a file: #625
  • Passed the token input through on GHES: #595
  • Fixed issue with scoped registries are duplicated in npmrc: #637

Update @actions/core and Print Node, Npm, Yarn versions

13 Oct 12:19
8c91899
Compare
Choose a tag to compare

Add support for engines.node and Volta

27 Sep 13:40
969bd26
Compare
Choose a tag to compare

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

14 Jul 10:48
2fddd88
Compare
Choose a tag to compare

In scope of this release we fixed bugs related to the pnpm 7.5.1 output issue from pnpm store path #545. Moreover we fixed the issue with falling on node-version output #540.

Add support for asdf format and update actions/cache version to 3.0.0

11 Jul 14:01
5b949b5
Compare
Choose a tag to compare

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

06 Jun 12:52
eeb10cf
Compare
Choose a tag to compare

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

  • Related pull request: #481
  • Related issue: #26
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
  with:
    node-version: lts/-1
- run: npm ci
- run: npm test

Minor improvements

  • Update zeit/ncc to vercel/ncc: #476
  • Get latest version from cache if exists: #496

Add current, node, latest aliases

16 May 10:21
17f8bd9
Compare
Choose a tag to compare

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

11 Apr 14:01
56337c4
Compare
Choose a tag to compare

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

01 Apr 09:15
5b52f09
Compare
Choose a tag to compare

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.

v3.0.0

24 Feb 13:45
9ced9a4
Compare
Choose a tag to compare

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 #414, all scripts will now be run with Node 16 rather than Node 12.
  • We removed deprecated version input (#424). Please use node-version input instead.