From b30a1bd2e918f984411b3777155a07389da4e5fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=A4der?= Date: Tue, 17 Dec 2024 10:35:37 +0100 Subject: [PATCH] Replaced "npm install" with "npm ci" in workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Mäder --- .github/workflows/ci-cd.yml | 4 ++-- .github/workflows/native-dependencies.yml | 2 +- .github/workflows/performance-tests.yml | 2 +- .github/workflows/playwright.yml | 2 +- .github/workflows/production-smoke-test.yml | 2 +- .github/workflows/publish-gh-pages.yml | 2 +- .github/workflows/publish-next.yml | 2 +- .github/workflows/publish-release.yml | 2 +- .github/workflows/translation.yml | 2 +- .gitpod.yml | 2 +- devfile.yaml | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 882cf23a04d5e..4d1bccf71b1a6 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -35,7 +35,7 @@ jobs: shell: bash run: | npm install -g node-gyp - npm install + npm ci ./scripts/check_git_status.sh env: NODE_OPTIONS: --max_old_space_size=4096 @@ -76,7 +76,7 @@ jobs: shell: bash run: | npm install -g node-gyp - npm install + npm ci npm run build git status ./scripts/check_git_status.sh diff --git a/.github/workflows/native-dependencies.yml b/.github/workflows/native-dependencies.yml index b886319db22a8..c85cfebe3f4ee 100644 --- a/.github/workflows/native-dependencies.yml +++ b/.github/workflows/native-dependencies.yml @@ -27,7 +27,7 @@ jobs: - name: Install and Build shell: bash run: | - npm install + npm ci env: NODE_OPTIONS: --max_old_space_size=4096 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # https://github.com/microsoft/vscode-ripgrep/issues/9 diff --git a/.github/workflows/performance-tests.yml b/.github/workflows/performance-tests.yml index 511cb4ae586d9..d6ab78a78026f 100644 --- a/.github/workflows/performance-tests.yml +++ b/.github/workflows/performance-tests.yml @@ -29,7 +29,7 @@ jobs: shell: bash run: | npm install -g node-gyp - npm install + npm ci npm run build env: NODE_OPTIONS: --max_old_space_size=4096 diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 8608a09cb79d9..c8d5f53cba1ea 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -43,7 +43,7 @@ jobs: shell: bash run: | npm install -g node-gyp - npm install + npm ci npm run build:browser npm run download:plugins env: diff --git a/.github/workflows/production-smoke-test.yml b/.github/workflows/production-smoke-test.yml index 17c011b65322b..fb0e628ef32d5 100644 --- a/.github/workflows/production-smoke-test.yml +++ b/.github/workflows/production-smoke-test.yml @@ -35,7 +35,7 @@ jobs: shell: bash run: | npm install -g node-gyp - npm install + npm ci cd examples/browser && npm run build:production env: NODE_OPTIONS: --max_old_space_size=4096 diff --git a/.github/workflows/publish-gh-pages.yml b/.github/workflows/publish-gh-pages.yml index c794e09f46dd7..beff4a235c357 100644 --- a/.github/workflows/publish-gh-pages.yml +++ b/.github/workflows/publish-gh-pages.yml @@ -33,7 +33,7 @@ jobs: - name: Pre-npm-Publish run: | npm install -g node-gyp - npm install + npm ci npm run build env: NODE_OPTIONS: --max_old_space_size=4096 diff --git a/.github/workflows/publish-next.yml b/.github/workflows/publish-next.yml index 1c6e77ef3f517..c59a32ea699c7 100644 --- a/.github/workflows/publish-next.yml +++ b/.github/workflows/publish-next.yml @@ -33,7 +33,7 @@ jobs: shell: bash run: | npm install -g node-gyp - npm install + npm ci npm run build env: NODE_OPTIONS: --max_old_space_size=4096 diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 7b516148d4801..3d52dc8286a06 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -39,7 +39,7 @@ jobs: shell: bash run: | npm install -g node-gyp - npm install + npm ci npm run build env: NODE_OPTIONS: --max_old_space_size=4096 diff --git a/.github/workflows/translation.yml b/.github/workflows/translation.yml index 1e22b6618d961..5452eb2b94ffe 100644 --- a/.github/workflows/translation.yml +++ b/.github/workflows/translation.yml @@ -27,7 +27,7 @@ jobs: shell: bash run: | npm install -g node-gyp - npm install + npm ci npm run build env: NODE_OPTIONS: --max_old_space_size=4096 diff --git a/.gitpod.yml b/.gitpod.yml index 89bdbc469d656..04cdc0c5ae79d 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -12,7 +12,7 @@ ports: - port: 9339 # Node.js debug port onOpen: ignore tasks: - - init: npm install && yarn build && yarn download:plugins + - init: npm ci && npm run build && npm run download:plugins command: > jwm & npm run start:browser ../.. --hostname=0.0.0.0 diff --git a/devfile.yaml b/devfile.yaml index 0d77dc0ca996d..0bf7d149102cf 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -36,7 +36,7 @@ commands: component: che-dev command: > killall node; - npm install && npm run build && npm run download:plugins + npm ci && npm run build && npm run download:plugins workdir: /projects/theia - name: > theia: Launch Browser Backend