Skip to content

Commit

Permalink
ci.yml: fix workflow trigger (#19)
Browse files Browse the repository at this point in the history
* ci.yml: fix workflow trigger

* specify node version

* upgrade setup-node step

* simplify
  • Loading branch information
jefflee-figma authored Feb 23, 2024
1 parent 3907a1b commit e87e2a2
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,24 @@ name: CI checks

on:
push:
branches: [$default-branch]
branches: [main]
pull_request:
branches: [$default-branch]
branches: [main]

jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- run: npm ci
- name: Typecheck
run: npm run typecheck
- name: Lint code
run: npm run lint
- name: Lint docs
run: npm run lint:docs
- name: Tests
run: npm run test
- run: npm run typecheck
- run: npm run lint
- run: npm run lint:docs
- run: npm run test
- name: Check that commit contains build artifacts
run: |
npm run build
Expand Down

0 comments on commit e87e2a2

Please sign in to comment.