1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 06:38:07 +02:00

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
This commit is contained in:
Wojciech Maj 2024-07-01 13:31:41 +02:00
parent b5d554e1b4
commit 6b449d8884
No known key found for this signature in database
GPG key ID: 2BAFB575E3D38592
6 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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