Skip to content

Commit 1830cb0

Browse files
authored
chore: replace npm install with npm ci in our workflows (carbon-design-system#1017)
1 parent ad74aea commit 1830cb0

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
node-version-file: '.nvmrc'
2323
cache: "npm"
2424
- name: Install dependencies
25-
run: npm install
25+
run: npm ci --prefer-offline
2626
- name: Run build
2727
run: npm run build
2828

@@ -37,7 +37,7 @@ jobs:
3737
cache: "npm"
3838
- name: Install dependencies
3939
run: |
40-
npm install
40+
npm ci --prefer-offline
4141
npx playwright install --with-deps
4242
- name: Build ai-chat
4343
run: npm run aiChat:build
@@ -56,7 +56,7 @@ jobs:
5656
node-version-file: '.nvmrc'
5757
cache: "npm"
5858
- name: Install dependencies
59-
run: npm install
59+
run: npm ci --prefer-offline
6060
- name: Check formatting of project files (staged)
6161
if: ${{ github.event_name == 'pull_request' }}
6262
run: npm run format:staged
@@ -74,7 +74,7 @@ jobs:
7474
node-version-file: '.nvmrc'
7575
cache: "npm"
7676
- name: Install dependencies
77-
run: npm install
77+
run: npm ci --prefer-offline
7878
- name: Lint
7979
run: npm run lint && npm run lint:styles
8080

@@ -88,6 +88,6 @@ jobs:
8888
node-version-file: '.nvmrc'
8989
cache: "npm"
9090
- name: Install dependencies
91-
run: npm install
91+
run: npm ci --prefer-offline
9292
- name: License check
9393
run: npm run lint:license

.github/workflows/create-release-tag-and-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
registry-url: https://registry.npmjs.org
110110
cache: "npm"
111111
- name: Install dependencies
112-
run: npm install
112+
run: npm ci --prefer-offline
113113

114114
# Generate the changelog with the local 'get-changelog.js' script and output to 'changelog.txt' file
115115
- name: Run changelog script

.github/workflows/deploy-dev-env.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
cache: "npm"
2424
- name: Install dependencies and build chat packages
2525
run: |
26-
npm install
26+
npm ci --prefer-offline
2727
npm run aiChat:build
2828
2929
# Deploy demo to Github Pages using `gh-pages` package

.github/workflows/publish-chat-cdn.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
cache: "npm"
3131
- name: Install dependencies
3232
run: |
33-
npm install
33+
npm ci --prefer-offline
3434
npm run build
3535
- name: Check release type
3636
if: contains(github.event.client_payload.tag, '-rc.') || contains(github.event.inputs.tag, '-rc.')

.github/workflows/publish-components-cdn.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
cache: "npm"
3131
- name: Install dependencies
3232
run: |
33-
npm install
33+
npm ci --prefer-offline
3434
npm run build
3535
- name: Build Storybook
3636
run: |

.github/workflows/release-base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
cache: "npm"
5858
- name: Install dependencies and build
5959
run: |
60-
npm install
60+
npm ci --prefer-offline
6161
npx playwright install --with-deps
6262
npm run build
6363
- name: Continuous integration check

0 commit comments

Comments
 (0)