From e6febaaf96c1223a38c5bbb9e03423ec7833a81b Mon Sep 17 00:00:00 2001 From: Sven65 Date: Tue, 26 Sep 2023 14:47:23 +0200 Subject: [PATCH] feat!: Add automatic releases --- .github/workflows/release.yml | 22 ++++++++++++++++++++++ GitVersion.yml | 9 +++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 GitVersion.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..90284e5 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 \ No newline at end of file diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 0000000..e38ac35 --- /dev/null +++ b/GitVersion.yml @@ -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 \ No newline at end of file