fix: reorganize action to prevent deploying when tsc fails
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user