Skip to content

Commit c7f7cbb

Browse files
Revert GitHub actions and Azure pipelines back to npm ci
All build and deployment pipelines should use npm ci for reproducible builds: - .github/actions/npm-ci/action.yml - .github/actions/build-vsix/action.yml - build/azure-pipeline.stable.yml - build/azure-pipeline.pre-release.yml Only the post-checkout git hook and devcontainer files now use npm install.
1 parent 9537ee1 commit c7f7cbb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/actions/build-vsix/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ outputs:
99
runs:
1010
using: 'composite'
1111
steps:
12-
# This is faster than running `npm install`, we do not want to build zmq, as its already built by us.
13-
- run: npm install --ignore-scripts --prefer-offline --no-audit
12+
# This is faster than running `npm ci`, we do not want to build zmq, as its already built by us.
13+
- run: npm ci --ignore-scripts --prefer-offline --no-audit
1414
shell: bash
1515

1616
# Run again, as the download of zmq binaries could have failed with 403 errors

.github/actions/npm-ci/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: 'Install dependencies (npm install)'
1+
name: 'Install dependencies (npm ci)'
22
description: 'npm install (with GITHUB_TOKEN to run postinstall step)'
33

44
runs:
55
using: 'composite'
66
steps:
7-
- run: npm install --foreground-scripts --prefer-offline
7+
- run: npm ci --foreground-scripts --prefer-offline
88
env:
99
npm_config_build_from_source: true
1010
shell: bash

build/azure-pipeline.pre-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ extends:
7373
addToPath: true
7474
architecture: 'x64'
7575

76-
- script: npm install --foreground-scripts
77-
displayName: npm install
76+
- script: npm ci --foreground-scripts
77+
displayName: npm ci
7878
env:
7979
npm_config_build_from_source: true
8080
VSC_VSCE_TARGET: $(vsceTarget)

build/azure-pipeline.stable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ extends:
6767
addToPath: true
6868
architecture: 'x64'
6969

70-
- script: npm install --foreground-scripts
71-
displayName: npm install
70+
- script: npm ci --foreground-scripts
71+
displayName: npm ci
7272
env:
7373
npm_config_build_from_source: true
7474
VSC_VSCE_TARGET: $(vsceTarget)

0 commit comments

Comments
 (0)