Merge pull request #72 from perxhealth/dependabot/npm_and_yarn/types/… #132
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 and Validate | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- 'releases/*' | |
jobs: | |
lint: | |
name: ⬣ ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Node setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 7.1.6 | |
run_install: false | |
- name: Download deps | |
run: pnpm install | |
- name: Lint | |
run: pnpm lint | |
typecheck: | |
name: ʦ TypeScript | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Node setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 7.1.6 | |
run_install: false | |
- name: Download deps | |
run: pnpm install | |
- name: Compile | |
run: pnpm tsc | |
package: | |
name: 📦 Package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Node setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 7.1.6 | |
run_install: false | |
- name: Download deps | |
run: pnpm install | |
- name: Package release | |
run: pnpm package |