Skip to content

Commit

Permalink
ci: Run release workflow on push instead of pull_request
Browse files Browse the repository at this point in the history
If `semantic-release` detects running on a PR, it will prevent a release.
  • Loading branch information
pmowrer committed Jan 16, 2024
1 parent 29f7438 commit 179c870
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: Release

on:
pull_request:
push:
branches:
- master
types:
- closed


jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 179c870

Please sign in to comment.