From 544ffdb0a997797dc373167e78bf118a31ee2eb5 Mon Sep 17 00:00:00 2001 From: sdarwin Date: Mon, 6 Nov 2023 21:23:26 +0000 Subject: [PATCH] Run "npm ci" --- .github/actions/antora_publish/action.yml | 6 +----- .github/workflows/ui-release.yml | 2 +- README.adoc | 2 +- antora-ui/build.sh | 2 +- libdoc.sh | 2 +- package-lock.json | 19 ++++++++++++++++++- package.json | 3 ++- sitedoc.sh | 2 +- 8 files changed, 26 insertions(+), 12 deletions(-) diff --git a/.github/actions/antora_publish/action.yml b/.github/actions/antora_publish/action.yml index 0a9501f..8644818 100644 --- a/.github/actions/antora_publish/action.yml +++ b/.github/actions/antora_publish/action.yml @@ -42,13 +42,9 @@ runs: shell: bash run: | if test -f "package.json"; then - npm install + npm ci fi - - name: Install Antora - shell: bash - run: npm i antora - - name: Install Antora Extensions if: inputs.extensions != '' shell: bash diff --git a/.github/workflows/ui-release.yml b/.github/workflows/ui-release.yml index a5abd71..f018947 100644 --- a/.github/workflows/ui-release.yml +++ b/.github/workflows/ui-release.yml @@ -32,7 +32,7 @@ jobs: - name: Build working-directory: antora-ui run: | - npm install + npm ci gulp bundle - name: Bundle diff --git a/README.adoc b/README.adoc index 669622a..2a8143c 100644 --- a/README.adoc +++ b/README.adoc @@ -44,7 +44,7 @@ After cloning the project, you need to https://docs.antora.org/antora/latest/ins [source,bash] ---- -$ npm install +$ npm ci ---- Verify the antora command is now available by running: diff --git a/antora-ui/build.sh b/antora-ui/build.sh index 850029e..1eaff1b 100755 --- a/antora-ui/build.sh +++ b/antora-ui/build.sh @@ -15,7 +15,7 @@ if [ -z "$gulp_version" ]; then fi if [ ! -d "node_modules" ] || [ "$(find package.json -prune -printf '%T@\n' | cut -d . -f 1)" -gt "$(find node_modules -prune -printf '%T@\n' | cut -d . -f 1)" ]; then - npm install + npm ci fi gulp bundle diff --git a/libdoc.sh b/libdoc.sh index 5a9ab8e..54990e8 100755 --- a/libdoc.sh +++ b/libdoc.sh @@ -63,7 +63,7 @@ else fi if [ ! -d "node_modules" ] || [ "$(find package.json -prune -printf '%T@\n' | cut -d . -f 1)" -gt "$(find node_modules -prune -printf '%T@\n' | cut -d . -f 1)" ]; then - npm install + npm ci fi # Run antora command diff --git a/package-lock.json b/package-lock.json index 249aaeb..424cb9c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,8 @@ }, "devDependencies": { "@antora/cli": "3.1.2", - "@antora/site-generator": "3.1.2" + "@antora/site-generator": "3.1.2", + "antora": "3.1.2" } }, "node_modules/@antora/asciidoc-loader": { @@ -331,6 +332,22 @@ "node": ">=6.5" } }, + "node_modules/antora": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/antora/-/antora-3.1.2.tgz", + "integrity": "sha512-v+78jtE1XZ44dm8rYIyWvFzteBw/QEKyD0QJQMk2I7I3F3QPK2cruPXoVVfwq+vfzL9oqv2dqjrf2cTpHjsIpQ==", + "dev": true, + "dependencies": { + "@antora/cli": "3.1.2", + "@antora/site-generator": "3.1.2" + }, + "bin": { + "antora": "bin/antora" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/append-buffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/append-buffer/-/append-buffer-1.0.2.tgz", diff --git a/package.json b/package.json index 5e3d9bf..cbe062d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "devDependencies": { "@antora/cli": "3.1.2", - "@antora/site-generator": "3.1.2" + "@antora/site-generator": "3.1.2", + "antora": "3.1.2" }, "dependencies": { "@antora/lunr-extension": "^1.0.0-alpha.8", diff --git a/sitedoc.sh b/sitedoc.sh index ebe3f69..9e5263a 100755 --- a/sitedoc.sh +++ b/sitedoc.sh @@ -58,7 +58,7 @@ else fi if [ ! -d "node_modules" ] || [ "$(find package.json -prune -printf '%T@\n' | cut -d . -f 1)" -gt "$(find node_modules -prune -printf '%T@\n' | cut -d . -f 1)" ]; then - npm install + npm ci fi # TODO: Find a better way of setting these