Skip to content

Commit

Permalink
feat: update node version to 18/20/22 (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoishin authored Dec 25, 2024
1 parent aa9b215 commit 9990349
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,30 @@ name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- '18'
- '20'
- '22'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: ${{ matrix.node-version }}
- run: npm i -g bower
- run: npm ci
- run: npm run static
- run: npm test
- uses: codecov/codecov-action@v3
if: matrix.node-version == '22'
- run: npm run build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release-please
on:
push:
branches:
- master
- main

permissions:
contents: write
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
"typescript": "4.2.3"
},
"engines": {
"node": ">=8"
"node": "^18.12.0 || ^20.9.0 || ^22.11.0"
}
}

0 comments on commit 9990349

Please sign in to comment.