mirror of
https://github.com/standardnotes/app.git
synced 2026-01-16 23:01:30 +00:00
fix: reorganize action to prevent deploying when tsc fails
This commit is contained in:
parent
2f720d39f0
commit
7f4bcdeec5
2 changed files with 20 additions and 5 deletions
19
.github/workflows/dev.yml
vendored
19
.github/workflows/dev.yml
vendored
|
|
@ -5,10 +5,29 @@ on:
|
|||
branches: [ develop ]
|
||||
|
||||
jobs:
|
||||
|
||||
tsc:
|
||||
|
||||
name: Check types
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Typescript
|
||||
run: npm run tsc
|
||||
|
||||
deploy:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs: tsc
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
name: Typescript check
|
||||
name: Check pull request
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- develop
|
||||
Loading…
Add table
Reference in a new issue