mirror of
https://github.com/actions/setup-node.git
synced 2025-07-23 23:18:25 +02:00
fix readme and warning
This commit is contained in:
parent
1405bc86d4
commit
dbbe0bac60
3 changed files with 5 additions and 4 deletions
|
@ -41,8 +41,9 @@ steps:
|
|||
- run: npm test
|
||||
```
|
||||
|
||||
Checking latest version of Node.js:
|
||||
(By default, action searches version locally before downloading it. The flag forces action to check if cached version is not outdated)
|
||||
Check latest version:
|
||||
> In basic example, without `check-latest` flag, the action tries to resolve version from local cache firstly and download only if it is not found. Local cache on image is updated with a couple of weeks latency.
|
||||
`check-latest` flag forces the action to check if the cached version is the latest one. It reduces latency significantly but it is much more likely to incur version downloading.
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue