- Notifications
You must be signed in to change notification settings - Fork11
chore: update Node.js engine requirement to >=20.0.0 and adjust module exports#57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| name:Build | |
| on: | |
| push: | |
| branches: | |
| -main | |
| pull_request: | |
| branches: | |
| -main | |
| jobs: | |
| build: | |
| runs-on:ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version:[20.x, 22.x] | |
| steps: | |
| -uses:actions/checkout@v5 | |
| -name:Use Node.js ${{ matrix.node-version }} | |
| uses:actions/setup-node@v5 | |
| with: | |
| node-version:${{ matrix.node-version }} | |
| cache:"npm" | |
| -name:Install deps | |
| run:npm ci | |
| -name:Prepare environment | |
| run:npm run dev:prepare | |
| -name:Lint code | |
| run:npm run lint | |
| -name:Build project | |
| run:npm run prepack |