From 01480505c25ce3dc67da644094c2b8d7258c718e Mon Sep 17 00:00:00 2001 From: Uiolee <22849383+uiolee@users.noreply.github.com> Date: Mon, 8 Jul 2024 16:01:51 +0800 Subject: [PATCH] chore: require node >= 18 (#112) * require node >=18 * ci: bump node to 18,20 * ci: bump actions to latest major version --- .github/workflows/linter.yml | 8 ++++---- .github/workflows/tester.yml | 14 +++++++------- package.json | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 6dc94c7..f22e260 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -6,11 +6,11 @@ jobs: linter: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Use Node.js 14.x - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - name: Use Node.js 18 + uses: actions/setup-node@v4 with: - node-version: '14.x' + node-version: "18" - name: Install Dependencies run: npm install - name: Lint diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index 55f32f4..1ad5b56 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -8,12 +8,12 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node-version: ['14.x', '16.x', '18.x'] + node-version: [18, 20] fail-fast: false steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install Dependencies @@ -27,11 +27,11 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node-version: ['14.x'] + node-version: [18] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install Dependencies @@ -41,6 +41,6 @@ jobs: env: CI: true - name: Coveralls - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.github_token }} diff --git a/package.json b/package.json index a610778..fd4dfd2 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "lib/" ], "engines": { - "node": ">=14" + "node": ">=18" }, "repository": "hexojs/hexo-generator-index", "homepage": "https://hexo.io/",