mirror of
https://github.com/actions/setup-node.git
synced 2025-04-21 19:18:43 +00:00
docs: recommend npm ci
This commit is contained in:
parent
04c56d2f95
commit
9971d71701
1 changed files with 4 additions and 4 deletions
|
@ -22,7 +22,7 @@ steps:
|
|||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
- run: npm install
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
```
|
||||
|
||||
|
@ -55,7 +55,7 @@ steps:
|
|||
with:
|
||||
node-version: '14'
|
||||
cache: 'npm'
|
||||
- run: npm install
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
```
|
||||
|
||||
|
@ -68,7 +68,7 @@ steps:
|
|||
node-version: '14'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: subdir/package-lock.json
|
||||
- run: npm install
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
```
|
||||
|
||||
|
@ -87,7 +87,7 @@ jobs:
|
|||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- run: npm install
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
```
|
||||
## Advanced usage
|
||||
|
|
Loading…
Add table
Reference in a new issue