Skip to content

Commit

Permalink
fix: on push release
Browse files Browse the repository at this point in the history
  • Loading branch information
Matéo Mévollon committed Oct 25, 2022
1 parent 1a9dc2a commit b356b95
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: Release
on:
pull_request:
types:
- closed
push:
branches:
- master
workflow_dispatch:

jobs:
release:
name: Release
# the closed PR trigger is not necessarily a merge
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -29,5 +25,4 @@ jobs:
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# semantic-release won't run on PRs without the --no-ci flag
run: npx semantic-release --no-ci
run: npx semantic-release

0 comments on commit b356b95

Please sign in to comment.