Skip to content

Commit

Permalink
npm install is faster than npm ci (#33459)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbe authored Dec 12, 2022
1 parent e78eb19 commit af79c96
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/code-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ on:
- .eslintrc.cjs
# In case something like eslint or tsc or prettier upgrades
- 'package-lock.json'
# In case one of the script definitions changed
- 'package.json'
# Ultimately, for debugging this workflow itself
- .github/workflows/code-lint.yml

Expand All @@ -37,14 +39,20 @@ jobs:
- name: Check out repo
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8

- name: Cache node_modules
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package*.json') }}

- name: Setup node
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516
with:
node-version: '16.17.0'
cache: npm

- name: Install dependencies
run: npm ci
run: npm install --prefer-offline --no-audit --ignore-scripts

- name: Run linter
run: npm run lint
Expand Down

0 comments on commit af79c96

Please sign in to comment.