refactor: simplify listener type #54
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: build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Install pnpm 📦 | |
uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install dependencies 📦 | |
run: pnpm install | |
- name: Lint 🧹 | |
run: pnpm run lint | |
- name: Build 🔧 | |
run: pnpm run build | |
- name: Test 🧪 | |
run: pnpm run test:coverage | |
- name: Upload Coverage 📊 | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} | |
with: | |
coverageLocations: ${{github.workspace}}/coverage/clover.xml:clover | |
- name: Build Docs 📖 | |
run: pnpm run docs | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: docs |