chore: move to wopjs #6
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 | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Install pnpm 🤏🏻 | |
uses: pnpm/action-setup@v4 | |
with: | |
run_install: false | |
- name: Cache 📦 | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
- name: Install 🚀 | |
run: | | |
pnpm install | |
- name: Lint 🧹 | |
run: | | |
pnpm run lint | |
- name: Test 🧪 | |
run: | | |
pnpm run test:coverage | |
- name: Build 🔧 | |
run: | | |
pnpm run build | |
- name: Coverage 📊 | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Docs 📖 | |
run: | | |
pnpm run docs | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: docs |