-
released this
2021-06-30 20:20:50 +08:00 | 314 commits to main since this releaseThis release brings two major features:
Supported version syntax
The
node-versioninput 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. Thecacheinput 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 testCaching yarn dependencies:
steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: '14' cache: 'yarn' - run: yarn install - run: yarn testYarn caching handles both yarn versions: 1 or 2.
At the moment, only
lockfiles in the project root are supported.Downloads