From a21003dbf871867e0b813c7d2c5685d12b488be1 Mon Sep 17 00:00:00 2001 From: Niklas Mollenhauer Date: Tue, 6 Oct 2020 18:52:07 +0200 Subject: [PATCH] Use npm ci for nightly builds (#40905) Using [npm ci](https://docs.npmjs.com/cli/ci.html) keeps the builds reproducible. In this PR, we keep the nightly build en par with the [CI build workflow](https://github.com/microsoft/TypeScript/blob/master/.github/workflows/ci.yml#L33) as well as the [releasable package workflow](https://github.com/microsoft/TypeScript/blob/master/.github/workflows/release-branch-artifact.yaml#L24). The used package-lock.json is updated [an hour before this workflow](https://github.com/microsoft/TypeScript/blob/master/.github/workflows/update-package-lock.yaml#L7), there should not be any lockfile conflicts. --- .github/workflows/nightly.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 24c3ed774f3..abe704bb564 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -22,7 +22,7 @@ jobs: - name: Setup and publish nightly run: | npm whoami - npm i + npm ci gulp configure-nightly gulp LKG gulp runtests-parallel