Update FUNDING.yml #8
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: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18, 20] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm install | |
- name: Lint code | |
run: npm run lint | |
- name: Run tests | |
run: npm test | |
- name: Build project | |
run: npm run build | |
- name: Check dev server | |
run: | | |
npm run dev & | |
sleep 10 | |
curl -I http://localhost:3000 | |
env: | |
NODE_ENV: development | |
- name: Publish package | |
if: github.ref == 'refs/heads/main' | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.TOKEN }} |