Skip to content

Commit

Permalink
chore: require node >= 18 (#112)
Browse files Browse the repository at this point in the history
* require node >=18

* ci: bump node to 18,20

* ci: bump actions to latest major version
  • Loading branch information
uiolee authored Jul 8, 2024
1 parent e3c8b35 commit 0148050
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lib/"
],
"engines": {
"node": ">=14"
"node": ">=18"
},
"repository": "hexojs/hexo-generator-index",
"homepage": "https://hexo.io/",
Expand Down

0 comments on commit 0148050

Please sign in to comment.