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

perf: use npm ci instead of npm i in GH Action Workflow #762

Merged
merged 3 commits into from
Mar 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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') }}
Expand All @@ -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 👀
Expand Down
Loading