Skip to content

Commit

Permalink
Update release workflow. (jsonnull#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonnull authored Jun 19, 2023
1 parent 0e72fe9 commit 54e7b6d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Release packages
on:
workflow_run:
workflows: ['Run tests']
types:
- completed

env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
Expand All @@ -15,10 +17,8 @@ jobs:
node: ['18.x']
os: [ubuntu-latest]

needs: test
if: >
${{ github.event_name == 'push' && github.ref == 'refs/heads/main' &&
github.event.workflow_run.conclusion == 'success' }}
${{ github.ref == 'refs/heads/main' && github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
Expand All @@ -45,10 +45,8 @@ jobs:
node: ['18.x']
os: [ubuntu-latest]

needs: test
if: >
${{ github.event_name == 'push' && github.ref == 'refs/heads/next' &&
github.event.workflow_run.conclusion == 'success' }}
${{ github.ref == 'refs/heads/next' && github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 54e7b6d

Please sign in to comment.