Skip to content

Commit 9a72a03

Browse files
committed
ci(GitHub): Use npm ci instead of npm install
Use `npm ci` [1] instead of `npm install` to install the dependencies of the Docusaurus project to ensure that exactly the versions from the lockfile are used. [1]: https://docs.npmjs.com/cli/v9/commands/npm-ci Signed-off-by: Martin Nonnenmacher <[email protected]>
1 parent 02205f8 commit 9a72a03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/docusaurus-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
cache: npm
1818
cache-dependency-path: docusaurus/package-lock.json
1919
- name: Install dependencies
20-
run: npm install
20+
run: npm ci
2121
working-directory: docusaurus
2222
- name: Build website
2323
run: npm run build

.github/workflows/docusaurus-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
cache: npm
1818
cache-dependency-path: docusaurus/package-lock.json
1919
- name: Install dependencies
20-
run: npm install
20+
run: npm ci
2121
working-directory: docusaurus
2222
- name: Test build
2323
run: npm run build

0 commit comments

Comments
 (0)