feat: add github action to automatically deploy on main branch #18
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] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup pnpm | |
run: corepack enable | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "18" | |
cache: "pnpm" | |
- name: Install Deps | |
run: pnpm install --frozen-lockfile --verify-store-integrity | |
- name: Test | |
run: pnpm run ci | |
env: | |
CI: true |