Compare commits

...

4 Commits

Author SHA1 Message Date
Karl Horky
963862f8fe
Merge f454ce2807 into aca7b64a59 2024-09-26 22:49:40 +05:30
Joel Ambass
aca7b64a59
Merge pull request #1134 from actions/Jcambass-patch-1
Upgrade IA Publish
2024-09-26 08:24:05 +02:00
Joel Ambass
d6ebc7b438
Upgrade IA Publish 2024-09-16 17:18:15 +02:00
Karl Horky
f454ce2807
Add warning and caveat for NVM syntax 2024-07-27 13:49:33 +02:00
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ name: 'Publish Immutable Action Version'
on:
release:
types: [created]
types: [published]
jobs:
publish:
@ -17,6 +17,4 @@ jobs:
uses: actions/checkout@v4
- name: Publish
id: publish
uses: actions/publish-immutable-action@0.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
uses: actions/publish-immutable-action@0.0.3

View File

@ -105,9 +105,11 @@ Examples:
- Major versions: `18`, `20`
- More specific versions: `10.15`, `16.15.1` , `18.4.0`
- NVM LTS syntax: `lts/erbium`, `lts/fermium`, `lts/*`, `lts/-n`
- NVM LTS syntax (beware of caveat below): `lts/erbium`, `lts/fermium`, `lts/*`, `lts/-n`
- Latest release: `*` or `latest`/`current`/`node`
**Caveat for NVM syntax:** There is currently no way to ensure that NVM version syntax like `lts/*` will receive the latest LTS release immediately - it can take days to update to the latest LTS because of cache implementation details (see [this issue]([https://github.com/actions/setup-node](https://github.com/actions/setup-node/issues/940#issuecomment-2029638604))). If you need the latest LTS versions in a timely manner, it is recommended to use a different action than `actions/setup-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.
`current`/`latest`/`node` always resolve to the latest [dist version](https://nodejs.org/dist/index.json).