docs: recommend npm ci

This commit is contained in:
hiroki osame 2021-11-30 17:50:21 -05:00 committed by GitHub
parent 04c56d2f95
commit 9971d71701
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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