Skip to content

Commit

Permalink
feat!: Add automatic releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Sep 26, 2023
1 parent b3ad94e commit 13b20f5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Bump version and create release

on:
push:
branches: [main]

jobs:
release:
runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Create Release and bump version files
uses: helsingborg-stad/release-wp-plugin-action@1.0.1
with:
php-version: 8.2
node-version: 20.6.0
9 changes: 9 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
mode: MainLine
major-version-bump-message: "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([\\w\\s-]*\\))?(!:|:.*\\n\\n((.+\\n)+\\n)?BREAKING CHANGE:\\s.+)"
minor-version-bump-message: "^(feat)(\\([\\w\\s-]*\\))?:"
patch-version-bump-message: "^(build|chore|ci|docs|fix|perf|refactor|revert|style|test)(\\([\\w\\s-]*\\))?:"

branches:
main:
regex: ^main$|^master$
is-release-branch: true

0 comments on commit 13b20f5

Please sign in to comment.