hdoc-tools 0.18.1 → 0.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -11,16 +11,16 @@ jobs:
|
|
11
11
|
validate_pull_request:
|
12
12
|
runs-on: ubuntu-latest
|
13
13
|
steps:
|
14
|
+
# Setup NodeJS Active LTS (20 currently, moving to 22 as the next LTS)
|
15
|
+
- uses: actions/setup-node@v4
|
16
|
+
with:
|
17
|
+
node-version: 22
|
18
|
+
|
14
19
|
# Checkout the relevant content for pull_request_target
|
15
20
|
- name: Checkout For Pull Request Target
|
16
|
-
uses: actions/checkout@
|
21
|
+
uses: actions/checkout@v4
|
17
22
|
with:
|
18
23
|
ref: ${{ github.event.pull_request.head.sha }}
|
19
|
-
|
20
|
-
# Setup NodeJS LTS (18 currently)
|
21
|
-
- uses: actions/setup-node@v3
|
22
|
-
with:
|
23
|
-
node-version: 18
|
24
24
|
|
25
25
|
# Install hdoc-tools globally
|
26
26
|
- name: Install hdoc-tools
|
@@ -12,18 +12,17 @@ jobs:
|
|
12
12
|
validate_push:
|
13
13
|
runs-on: ubuntu-latest
|
14
14
|
steps:
|
15
|
-
|
15
|
+
# Setup NodeJS Active LTS (20 currently, moving to 22 as the next LTS)
|
16
|
+
- uses: actions/setup-node@v4
|
17
|
+
with:
|
18
|
+
node-version: 22
|
19
|
+
|
16
20
|
# Checkout the relevant content for push or workflow_dispatch
|
17
21
|
- name: Checkout For Push or Workflow Dispatch
|
18
|
-
uses: actions/checkout@
|
22
|
+
uses: actions/checkout@v4
|
19
23
|
with:
|
20
24
|
ref: ${{ github.event.inputs.branch }}
|
21
25
|
fetch-depth: 0
|
22
|
-
|
23
|
-
# Setup NodeJS LTS (18 currently)
|
24
|
-
- uses: actions/setup-node@v3
|
25
|
-
with:
|
26
|
-
node-version: 18
|
27
26
|
|
28
27
|
# Install hdoc-tools globally
|
29
28
|
- name: Install hdoc-tools
|
package/validateNodeVer.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
(function() {
|
2
2
|
'use strict';
|
3
3
|
const vers = process.versions;
|
4
|
+
const supportedVersion = 20;
|
4
5
|
if (vers && vers.node) {
|
5
|
-
if (parseInt(vers.node, 10) <
|
6
|
+
if (parseInt(vers.node, 10) < supportedVersion) {
|
6
7
|
console.log('\r\nHornbill HDocBook Tools\r\n');
|
7
|
-
console.error(
|
8
|
+
console.error(`\x1b[31mThis tool requires Node.js version >= ${supportedVersion}.x.\x1b[0m\r\n`);
|
8
9
|
process.exit(1);
|
9
10
|
}
|
10
11
|
} else {
|