diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index e5416d09..31fa8629 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -16,7 +16,7 @@ assignees: '' ### Q&A (please complete the following information) - CLI version: [e.g. 1.0.0] - OS: [e.g. macOS Ventura] - - Node.js version: [e.g. 20.15.0] + - Node.js version: [e.g. 22.9.0] - SwaggerHub version if On-Premise: [e.g. 2.3.0+111] ### Describe the bug you're encountering diff --git a/.github/workflows/build-main.yaml b/.github/workflows/build-main.yaml index a265aae2..ae99c7d8 100644 --- a/.github/workflows/build-main.yaml +++ b/.github/workflows/build-main.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-24.04 strategy: matrix: - node-version: [ 20.x, 22.x ] + node-version: [ 22.x, 24.x, 26.x ] steps: - uses: actions/checkout@v7.0.1 - name: Use Node.js ${{ matrix.node-version }} diff --git a/.github/workflows/deploy-release.yaml b/.github/workflows/deploy-release.yaml index 8ead2c32..4edd1ae8 100644 --- a/.github/workflows/deploy-release.yaml +++ b/.github/workflows/deploy-release.yaml @@ -83,7 +83,7 @@ jobs: # Setup .npmrc file to publish to npm - uses: actions/setup-node@v6 with: - node-version: '20.x' + node-version: '24.x' registry-url: 'https://registry.npmjs.org' - run: npm ci diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 33868a88..1360d958 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-24.04 strategy: matrix: - node-version: [ 20.x, 22.x, 24.x ] + node-version: [ 22.x, 24.x, 26.x ] steps: - uses: actions/checkout@v7.0.1 - name: Use Node.js ${{ matrix.node-version }} diff --git a/.github/workflows/release-on-github.yaml b/.github/workflows/release-on-github.yaml index b53f007f..fcfca377 100644 --- a/.github/workflows/release-on-github.yaml +++ b/.github/workflows/release-on-github.yaml @@ -28,7 +28,7 @@ jobs: - uses: actions/setup-node@v6 with: - node-version: '20.x' + node-version: '24.x' - run: npm ci diff --git a/Dockerfile b/Dockerfile index 9fcdfc01..7dad1093 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-alpine +FROM node:24-alpine WORKDIR /cli COPY package*.json ./ COPY ./bin ./bin diff --git a/README.md b/README.md index ee2785c4..8c0bc387 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ The SwaggerHub CLI enables teams to build automation and workflows around Swagge * [Contributing](#contributing) # Requirements -Node.js 20.17 or later. +Node.js 22.9 or later. # Installation ```sh-session diff --git a/package-lock.json b/package-lock.json index cd892c09..1a9bce64 100644 --- a/package-lock.json +++ b/package-lock.json @@ -45,7 +45,7 @@ "tmp": "^0.2.7" }, "engines": { - "node": "^20.17.0 || >=22.9.0", + "node": ">=22.9.0", "npm": ">=11.9.0" } }, diff --git a/package.json b/package.json index bd08a9f7..3a42552e 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "tmp": "^0.2.7" }, "engines": { - "node": "^20.17.0 || >=22.9.0", + "node": ">=22.9.0", "npm": ">=11.9.0" }, "overrides": {