ci: update node version. (#34) #59
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
ci: | |
name: CI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: '20.11.1' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Save error log | |
uses: actions/[email protected] | |
if: ${{ failure() }} | |
with: | |
name: npm-debug-log-${{ hashFiles('package-lock.json') }} | |
path: npm-debug.log | |
- name: Test | |
run: npm test | |
- name: Report Coverage | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Lint | |
run: npm run lint | |
- name: Pack | |
run: npm pack |