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

Commit

Permalink
perf: use npm ci instead of npm i in GH Action Workflow (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni authored Mar 25, 2021
1 parent ca9f055 commit 8c9b77d
Show file tree
Hide file tree
Showing 3 changed files with 361 additions and 361 deletions.
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

0 comments on commit 8c9b77d

Please sign in to comment.