Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 8c9b77d

Browse files
perf: use npm ci instead of npm i in GH Action Workflow (#762)
1 parent ca9f055 commit 8c9b77d

File tree

3 files changed

+361
-361
lines changed

3 files changed

+361
-361
lines changed

packages/cna-template/template/frameworks/github-actions/.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/checkout@master
2525

2626
- name: Setup node env 🏗
27-
uses: actions/[email protected].2
27+
uses: actions/[email protected].5
2828
with:
2929
node-version: ${{ matrix.node }}
3030
check-latest: true
@@ -35,7 +35,7 @@ jobs:
3535
run: echo "::set-output name=dir::$(yarn cache dir)"
3636

3737
- name: Cache node_modules 📦
38-
uses: actions/cache@v2
38+
uses: actions/cache@v2.1.4
3939
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
4040
with:
4141
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -45,7 +45,7 @@ jobs:
4545
<%_ } _%>
4646
<%_ if (pm === 'npm') { _%>
4747
- name: Cache node_modules 📦
48-
uses: actions/cache@v2
48+
uses: actions/cache@v2.1.4
4949
with:
5050
path: ~/.npm
5151
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -54,7 +54,7 @@ jobs:
5454
<%_ } _%>
5555

5656
- name: Install dependencies 👨🏻‍💻
57-
run: <%= pmRun === 'yarn' ? 'yarn' : 'npm ci' %>
57+
run: <%= pmRun === 'yarn' ? 'yarn' : 'npm ci --prefer-offline --no-audit' %>
5858

5959
<%_ if (linter.length > 0) { _%>
6060
- name: Run linter 👀

0 commit comments

Comments
 (0)