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