Skip to content

Update issue templates #9

Update issue templates

Update issue templates #9

Workflow file for this run

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 }}