Run "npm ci"

This commit is contained in:
sdarwin
2023-11-06 21:23:26 +00:00
committed by Alan de Freitas
parent eb144d4d92
commit 544ffdb0a9
8 changed files with 26 additions and 12 deletions

View File

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

View File

@@ -32,7 +32,7 @@ jobs:
- name: Build
working-directory: antora-ui
run: |
npm install
npm ci
gulp bundle
- name: Bundle

View File

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

View File

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

View File

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

19
package-lock.json generated
View File

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

View File

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

View File

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