diff --git a/.github/workflows/__config-input.yml b/.github/workflows/__config-input.yml index f3422a825..160a61b81 100644 --- a/.github/workflows/__config-input.yml +++ b/.github/workflows/__config-input.yml @@ -47,7 +47,7 @@ jobs: node-version: 20.x cache: npm - name: Install dependencies - run: npm install + run: npm ci - name: Prepare test id: prepare-test uses: ./.github/actions/prepare-test diff --git a/.github/workflows/__packaging-codescanning-config-inputs-js.yml b/.github/workflows/__packaging-codescanning-config-inputs-js.yml index b3180ecb5..185cccbc2 100644 --- a/.github/workflows/__packaging-codescanning-config-inputs-js.yml +++ b/.github/workflows/__packaging-codescanning-config-inputs-js.yml @@ -73,7 +73,7 @@ jobs: node-version: 20.x cache: npm - name: Install dependencies - run: npm install + run: npm ci - name: Prepare test id: prepare-test uses: ./.github/actions/prepare-test diff --git a/.github/workflows/__packaging-config-inputs-js.yml b/.github/workflows/__packaging-config-inputs-js.yml index 23632e48a..810b85df3 100644 --- a/.github/workflows/__packaging-config-inputs-js.yml +++ b/.github/workflows/__packaging-config-inputs-js.yml @@ -73,7 +73,7 @@ jobs: node-version: 20.x cache: npm - name: Install dependencies - run: npm install + run: npm ci - name: Prepare test id: prepare-test uses: ./.github/actions/prepare-test diff --git a/.github/workflows/__packaging-config-js.yml b/.github/workflows/__packaging-config-js.yml index eb75016ff..ea96e3149 100644 --- a/.github/workflows/__packaging-config-js.yml +++ b/.github/workflows/__packaging-config-js.yml @@ -73,7 +73,7 @@ jobs: node-version: 20.x cache: npm - name: Install dependencies - run: npm install + run: npm ci - name: Prepare test id: prepare-test uses: ./.github/actions/prepare-test diff --git a/.github/workflows/__packaging-inputs-js.yml b/.github/workflows/__packaging-inputs-js.yml index beb67d20a..e2db4c443 100644 --- a/.github/workflows/__packaging-inputs-js.yml +++ b/.github/workflows/__packaging-inputs-js.yml @@ -73,7 +73,7 @@ jobs: node-version: 20.x cache: npm - name: Install dependencies - run: npm install + run: npm ci - name: Prepare test id: prepare-test uses: ./.github/actions/prepare-test diff --git a/.github/workflows/codescanning-config-cli.yml b/.github/workflows/codescanning-config-cli.yml index 1540eb3a1..925e5ce17 100644 --- a/.github/workflows/codescanning-config-cli.yml +++ b/.github/workflows/codescanning-config-cli.yml @@ -63,7 +63,7 @@ jobs: cache: 'npm' - name: Install dependencies - run: npm install + run: npm ci - name: Prepare test id: prepare-test diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 77b06a6a7..365b53a94 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -37,10 +37,10 @@ jobs: - name: Install dependencies run: | - # Use the system Bash shell to ensure we can run commands like `npm install` + # Use the system Bash shell to ensure we can run commands like `npm ci` # that are not available in the default shell on Windows. npm config set script-shell bash - npm install + npm ci - name: Verify compiled JS up to date run: .github/workflows/script/check-js.sh diff --git a/.github/workflows/query-filters.yml b/.github/workflows/query-filters.yml index 78b76f6ed..1014b4e55 100644 --- a/.github/workflows/query-filters.yml +++ b/.github/workflows/query-filters.yml @@ -33,7 +33,7 @@ jobs: cache: npm - name: Install dependencies - run: npm install + run: npm ci - name: Prepare test id: prepare-test diff --git a/.github/workflows/rebuild.yml b/.github/workflows/rebuild.yml index d7414cfc5..9ac5e64e0 100644 --- a/.github/workflows/rebuild.yml +++ b/.github/workflows/rebuild.yml @@ -63,7 +63,7 @@ jobs: - name: Compile TypeScript run: | - npm install + npm ci npm run lint -- --fix npm run build diff --git a/pr-checks/sync.py b/pr-checks/sync.py index cd1b1dde3..25518d319 100755 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -123,7 +123,7 @@ for file in sorted((this_dir / 'checks').glob('*.yml')): }, { 'name': 'Install dependencies', - 'run': 'npm install', + 'run': 'npm ci', }, ])