Skip to content

Commit

Permalink
chore(gha): add --prefer-offline to npm ci
Browse files Browse the repository at this point in the history
Adds the `--prefer-offline` option to `npm ci` commands to reduce
network traffic.
  • Loading branch information
kikuomax committed Jan 9, 2025
1 parent f5651af commit ea77308
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- dev
- main
- prefer-offline

pull_request:
branches:
Expand All @@ -29,7 +30,7 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: npm

- run: npm ci
- run: npm ci --prefer-offline

- name: Lint
# skips until the TypeScript migration is complete
Expand Down Expand Up @@ -69,7 +70,7 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: npm

- run: npm ci
- run: npm ci --prefer-offline

- name: Lint docs
# skips until the TypeScript migration is complete
Expand Down

0 comments on commit ea77308

Please sign in to comment.