Compare commits

...

4 Commits

Author SHA1 Message Date
Karl Horky
e46f53842f
Merge 6f485d0d11 into 13427813f7 2025-10-08 08:27:38 -07:00
dependabot[bot]
13427813f7
Bump actions/publish-action from 0.3.0 to 0.4.0 (#1362)
Bumps [actions/publish-action](https://github.com/actions/publish-action) from 0.3.0 to 0.4.0.
- [Commits](https://github.com/actions/publish-action/compare/v0.3.0...v0.4.0)

---
updated-dependencies:
- dependency-name: actions/publish-action
  dependency-version: 0.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-08 09:32:50 -05:00
Karl Horky
6f485d0d11
Add Caching Caveat note, add check-latest: true to examples 2025-03-06 17:00:28 +01:00
Karl Horky
f454ce2807
Add warning and caveat for NVM syntax 2024-07-27 13:49:33 +02:00
2 changed files with 11 additions and 6 deletions

View File

@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Update the ${{ env.TAG_NAME }} tag - name: Update the ${{ env.TAG_NAME }} tag
uses: actions/publish-action@v0.3.0 uses: actions/publish-action@v0.4.0
with: with:
source-tag: ${{ env.TAG_NAME }} source-tag: ${{ env.TAG_NAME }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }} slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

View File

@ -116,6 +116,7 @@ steps:
- uses: actions/setup-node@v5 - uses: actions/setup-node@v5
with: with:
node-version: 18 node-version: 18
check-latest: true
- run: npm ci - run: npm ci
- run: npm test - run: npm test
``` ```
@ -132,12 +133,13 @@ The `node-version` input supports the Semantic Versioning Specification, for mor
Examples: Examples:
- Major versions: `18`, `20` - Specific versions: `10.15`, `16.15.1` , `18.4.0`
- More specific versions: `10.15`, `16.15.1` , `18.4.0` - Version ranges (see **Caching Caveat** below)
- NVM LTS syntax: `lts/erbium`, `lts/fermium`, `lts/*`, `lts/-n` - Major versions: `18`, `20`
- Latest release: `*` or `latest`/`current`/`node` - NVM LTS syntax: `lts/erbium`, `lts/fermium`, `lts/*`, `lts/-n`
- Latest release: `*` or `latest`/`current`/`node`
**Note:** Like the other values, `*` will get the latest [locally-cached Node.js version](https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#nodejs), or the latest version from [actions/node-versions](https://github.com/actions/node-versions/blob/main/versions-manifest.json), depending on the [`check-latest`](docs/advanced-usage.md#check-latest-version) input. **Caching Caveat:** Version ranges may be cached for an indefinite time without the `check-latest: true` option - they may be stale for [durations up to 1 month](https://github.com/actions/setup-node/issues/1236#issuecomment-2704188519)
`current`/`latest`/`node` always resolve to the latest [dist version](https://nodejs.org/dist/index.json). `current`/`latest`/`node` always resolve to the latest [dist version](https://nodejs.org/dist/index.json).
That version is then downloaded from actions/node-versions if possible, or directly from Node.js if not. That version is then downloaded from actions/node-versions if possible, or directly from Node.js if not.
@ -177,6 +179,7 @@ steps:
- uses: actions/setup-node@v5 - uses: actions/setup-node@v5
with: with:
node-version: 20 node-version: 20
check-latest: true
cache: 'npm' cache: 'npm'
- run: npm ci - run: npm ci
- run: npm test - run: npm test
@ -190,6 +193,7 @@ steps:
- uses: actions/setup-node@v5 - uses: actions/setup-node@v5
with: with:
node-version: 20 node-version: 20
check-latest: true
cache: 'npm' cache: 'npm'
cache-dependency-path: subdir/package-lock.json cache-dependency-path: subdir/package-lock.json
- run: npm ci - run: npm ci
@ -212,6 +216,7 @@ jobs:
uses: actions/setup-node@v5 uses: actions/setup-node@v5
with: with:
node-version: ${{ matrix.node }} node-version: ${{ matrix.node }}
check-latest: true
- run: npm ci - run: npm ci
- run: npm test - run: npm test
``` ```