feat: shared config, improve prompts (#11) #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
name: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install pnpm | |
run: curl -L https://unpkg.com/@pnpm/self-installer | node | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build step | |
run: pnpm build | |
lint-and-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install pnpm | |
run: curl -L https://unpkg.com/@pnpm/self-installer | node | |
- name: Install dependencies | |
run: pnpm install | |
- name: Lint step | |
run: pnpm lint | |
- name: Format step | |
run: pnpm dlx prettier --check "**/*.{js,ts}" |