From 6b449d88841937c79113ecbfe8c8ca0d6a5b6ca4 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Mon, 1 Jul 2024 13:31:41 +0200 Subject: [PATCH] Use `npm ci`, not `npm install`, on CI This PR switches from `npm install` to `npm ci` on CI. This enables some additional checks to ensure repo integrity when using CI/CD. Read more: https://docs.npmjs.com/cli/v10/commands/npm-ci --- .github/workflows/ci.yml | 2 +- .github/workflows/font_tests.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/publish_release.yml | 2 +- .github/workflows/publish_website.yml | 2 +- .github/workflows/types_tests.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c9e46938312f..c48286c92ad41 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install dependencies - run: npm install + run: npm ci - name: Run external tests run: npx gulp externaltest diff --git a/.github/workflows/font_tests.yml b/.github/workflows/font_tests.yml index 0399c2ded0857..ff8353b371ae8 100644 --- a/.github/workflows/font_tests.yml +++ b/.github/workflows/font_tests.yml @@ -46,7 +46,7 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install dependencies - run: npm install + run: npm ci - name: Use Python 3.12 uses: actions/setup-python@v5 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a24b0bad5dd07..99b224c6ab9d3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,7 +25,7 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install dependencies - run: npm install + run: npm ci - name: Run lint run: npx gulp lint diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 741fdf0fb4a83..b04b2043714c2 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -27,7 +27,7 @@ jobs: registry-url: 'https://registry.npmjs.org' - name: Install dependencies - run: npm install + run: npm ci - name: Build the `pdfjs-dist` library run: npx gulp dist diff --git a/.github/workflows/publish_website.yml b/.github/workflows/publish_website.yml index 086bc8f5087b7..3e51ebff5c3fe 100644 --- a/.github/workflows/publish_website.yml +++ b/.github/workflows/publish_website.yml @@ -27,7 +27,7 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install dependencies - run: npm install + run: npm ci - name: Build the website run: npx gulp web diff --git a/.github/workflows/types_tests.yml b/.github/workflows/types_tests.yml index 98e96242ff58f..f0b96a3be1a1f 100644 --- a/.github/workflows/types_tests.yml +++ b/.github/workflows/types_tests.yml @@ -25,7 +25,7 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install dependencies - run: npm install + run: npm ci - name: Run types tests run: npx gulp typestest