From ae6d1ad5cf36820ee3da200d9fe80cf051bc94af Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 19 Mar 2024 15:17:21 -0700 Subject: [PATCH] Upgrade to node 20 --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- .nvmrc | 2 +- CONTRIBUTING.adoc | 2 +- README.adoc | 2 +- package.json | 2 +- packages/antora-xref-extension/package.json | 2 +- packages/antora-xref-test-harness/package.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e88e03..7f29d21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '20' - name: Install dependencies run: npm ci - name: Run linter diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e4caf13..052c246 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '20' - name: Set up release environment run: | echo RELEASE_VERSION=${{ github.event.inputs.release-version }} >> $GITHUB_ENV diff --git a/.nvmrc b/.nvmrc index 2ab3d4b..ee09fac 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v16.20.2 +v20.11.1 diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc index 317ea33..66395f6 100644 --- a/CONTRIBUTING.adoc +++ b/CONTRIBUTING.adoc @@ -49,7 +49,7 @@ If the command doesn't report an {url-nodejs-releases}[active LTS version] of No We strongly recommend that you use {url-nvm}[nvm] (Node Version Manager) to manage your Node.js installation(s). Follow the {url-nvm-install}[nvm installation instructions] to set up nvm on your machine. -Once you've installed nvm, open a new terminal and install Node.js 16 using the following command: +Once you've installed nvm, open a new terminal and install Node.js 20 using the following command: [,console] ---- diff --git a/README.adoc b/README.adoc index 8cd8be5..d1426ff 100644 --- a/README.adoc +++ b/README.adoc @@ -23,7 +23,7 @@ NOTE: This extension will slightly increase build times since `.adoc` files are == Prerequisites -In order to use this extension, you must be using Node.js 16 and {url-antora-docs}[Antora 3.1.0]. +In order to use this extension, you must be using Node.js 20 and {url-antora-docs}[Antora 3.1.0]. The following instructions assume you've already set up an Antora playbook file (i.e., _antora-playbook.yml_) to build your site. To learn about using extensions with Antora, see the {url-extension-docs}[Antora extension documentation]. diff --git a/package.json b/package.json index 67b673b..901f351 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "version": "node npm/version.js" }, "engines": { - "node": ">=16.0.0" + "node": ">=20.0.0" }, "devDependencies": { "eslint": "~8.27", diff --git a/packages/antora-xref-extension/package.json b/packages/antora-xref-extension/package.json index 6cf5120..29edb12 100644 --- a/packages/antora-xref-extension/package.json +++ b/packages/antora-xref-extension/package.json @@ -26,7 +26,7 @@ "lib" ], "engines": { - "node": ">=16.0.0" + "node": ">=20.0.0" }, "dependencies": {}, "devDependencies": {}, diff --git a/packages/antora-xref-test-harness/package.json b/packages/antora-xref-test-harness/package.json index 0910184..190e112 100644 --- a/packages/antora-xref-test-harness/package.json +++ b/packages/antora-xref-test-harness/package.json @@ -8,7 +8,7 @@ "./mocha-ci-reporter": "./lib/mocha-ci-reporter.js" }, "engines": { - "node": ">=16.0.0" + "node": ">=20.0.0" }, "devDependencies": { "chai": "~4.3",