You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,20 @@ steps:
41
41
- run: npm test
42
42
```
43
43
44
+
Check latest version:
45
+
> 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.
46
+
`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.
Copy file name to clipboardExpand all lines: action.yml
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,9 @@ inputs:
7
7
default: 'false'
8
8
node-version:
9
9
description: 'Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0'
10
+
check-latest:
11
+
description: 'Set this option if you want the action to check for the latest available version that satisfies the version spec'
12
+
default: false
10
13
registry-url:
11
14
description: 'Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN'
0 commit comments