mirror of
https://github.com/actions/setup-node.git
synced 2025-12-16 01:51:49 +08:00
rework approach
This commit is contained in:
13
README.md
13
README.md
@@ -41,6 +41,19 @@ steps:
|
||||
- run: npm test
|
||||
```
|
||||
|
||||
Checking latest version of Node.js:
|
||||
(By default, action searches version locally before downloading it. This flag forces action to check if local version is the latest one)
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '12'
|
||||
check-latest: true
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
```
|
||||
|
||||
Matrix Testing:
|
||||
```yaml
|
||||
jobs:
|
||||
|
||||
Reference in New Issue
Block a user