-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.patch
45 lines (45 loc) · 1.2 KB
/
release.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..cfb266c
--- /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