From cb2ed8b052146b25607f2f19d9a2c53c3d8b2f2e Mon Sep 17 00:00:00 2001 From: bluwy Date: Thu, 2 Jan 2025 10:54:07 +0800 Subject: [PATCH] Bump node version support to >=18 --- .changeset/gentle-paws-wait.md | 5 +++++ .github/workflows/analysis.yml | 2 +- .github/workflows/ci.yml | 8 ++++++-- .github/workflows/release.yml | 2 +- package.json | 2 +- packages/pack/package.json | 2 +- packages/publint/package.json | 2 +- 7 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 .changeset/gentle-paws-wait.md diff --git a/.changeset/gentle-paws-wait.md b/.changeset/gentle-paws-wait.md new file mode 100644 index 0000000..5b18f87 --- /dev/null +++ b/.changeset/gentle-paws-wait.md @@ -0,0 +1,5 @@ +--- +'publint': minor +--- + +Bump node version support to >=18 diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index cb2e6df..a676d27 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -20,7 +20,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 cache: pnpm - name: Cache analysis downloads uses: actions/cache@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c422f69..a33a9bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,11 @@ jobs: timeout-minutes: 5 strategy: matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest] + node: [18, 20, 22] + include: + - os: windows-latest + node: 22 fail-fast: false steps: - name: Checkout repo @@ -38,7 +42,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 18 + node-version: ${{ matrix.node }} cache: pnpm - name: Setup bun uses: oven-sh/setup-bun@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbecb27..0a37d7d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 cache: pnpm - name: Install dependencies run: pnpm install diff --git a/package.json b/package.json index 5f7029c..5b98a3b 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ }, "packageManager": "pnpm@9.15.1", "engines": { - "node": ">=16" + "node": ">=18" }, "devDependencies": { "@changesets/cli": "^2.27.11", diff --git a/packages/pack/package.json b/packages/pack/package.json index d5c9954..93a2106 100644 --- a/packages/pack/package.json +++ b/packages/pack/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "node ../publint/lib/cli.js" }, "engines": { - "node": ">=16" + "node": ">=18" }, "files": [ "src" diff --git a/packages/publint/package.json b/packages/publint/package.json index 93a59c9..104b008 100644 --- a/packages/publint/package.json +++ b/packages/publint/package.json @@ -28,7 +28,7 @@ "prepublishOnly": "pnpm cli" }, "engines": { - "node": ">=16" + "node": ">=18" }, "files": [ "lib",