Skip to content

Commit

Permalink
chore(ci): depend release on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Sep 15, 2021
1 parent 9f981d3 commit 8b9ae2d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches: [main, beta, chore/*, fix/*, ftr/*]
pull_request:
types: [opened]
branches: [main, beta]

jobs:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: GitHub Pages

on:
push:
workflow_run:
workflows: ['Jest', 'Cypress']
branches: [main]
pull_request:
types:
- completed

jobs:
deploy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/jest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
node-version: [12.x, 14.x, 16.x]

runs-on: ${{ matrix.platform }}
# if: github.event.pull_request.merged

steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: NPM

on:
push:
workflow_run:
workflows: ['Jest', 'Cypress']
branches: [main, beta]
types:
- completed

jobs:
release:
Expand Down

0 comments on commit 8b9ae2d

Please sign in to comment.