chore: add UMD build #2
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
on: ["pull_request"] | |
name: Build and Test PR | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Cache pnpm modules | |
uses: actions/cache@v4 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}- | |
- name: Install pnpm 🤏🏻 | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9.5.0 | |
run_install: true | |
- name: Lint 🧹 | |
run: | | |
pnpm run lint | |
- name: Test 🧪 | |
run: | | |
pnpm run test:coverage | |
- name: Build 🔧 | |
run: | | |
pnpm run build |