Skip to content

Commit

Permalink
Merge pull request #14 from simonzander/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
simonzander authored Oct 14, 2024
2 parents f5a7389 + 3b83ff1 commit 840a624
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: Release

on:
push:
branches:
- main
pull_request:
types: [closed]

jobs:
release:
if: github.event.pull_request.merged == true
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
runs-on: ubuntu-latest

steps:
Expand All @@ -23,7 +22,7 @@ jobs:
run: npm install

- name: Bump version and generate changelog
run: npx standard-version
run: npx standard-version --release-as minor

- name: Commit and push changes
run: |
Expand Down

0 comments on commit 840a624

Please sign in to comment.