This repository was archived by the owner on Mar 4, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: use npm ci instead of npm i in GH Action Workflow (#762)
- Loading branch information
1 parent
ca9f055
commit 8c9b77d
Showing
3 changed files
with
361 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
uses: actions/checkout@master | ||
|
||
- name: Setup node env π | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].5 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
check-latest: true | ||
|
@@ -35,7 +35,7 @@ jobs: | |
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache node_modules π¦ | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v2.1.4 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
|
@@ -45,7 +45,7 @@ jobs: | |
<%_ } _%> | ||
<%_ if (pm === 'npm') { _%> | ||
- name: Cache node_modules π¦ | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v2.1.4 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
|
@@ -54,7 +54,7 @@ jobs: | |
<%_ } _%> | ||
|
||
- name: Install dependencies π¨π»βπ» | ||
run: <%= pmRun === 'yarn' ? 'yarn' : 'npm ci' %> | ||
run: <%= pmRun === 'yarn' ? 'yarn' : 'npm ci --prefer-offline --no-audit' %> | ||
|
||
<%_ if (linter.length > 0) { _%> | ||
- name: Run linter π | ||
|
Oops, something went wrong.