Skip to content

Commit facd4ef

Browse files
ci: automated versioning (#174)
1 parent 8b27210 commit facd4ef

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/workflows/bump-version.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Bump version
2+
run-name: Bump ${{ github.event.inputs.version }} version
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
version:
8+
type: choice
9+
description: Version
10+
options:
11+
- patch
12+
- minor
13+
- major
14+
15+
jobs:
16+
version:
17+
permissions:
18+
contents: write
19+
uses: crowdin/.github/.github/workflows/bump-version.yml@main

.release-it.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"git": {
3+
"push": true,
4+
"commit": true,
5+
"commitMessage": "chore: version ${version} [skip ci]",
6+
"requireBranch": "master",
7+
"changelog": false,
8+
"tag": true
9+
},
10+
"github": {
11+
"release": false
12+
},
13+
"plugins": {
14+
"@j-ulrich/release-it-regex-bumper": {
15+
"in": "build.gradle",
16+
"out": [
17+
{
18+
"file": "README.md",
19+
"search": {
20+
"pattern": "\\d+\\.\\d+\\.\\d+",
21+
"flags": "g"
22+
},
23+
"replace": "{{versionWithoutPrerelease}}"
24+
},
25+
{
26+
"file": "build.gradle",
27+
"search": "^version '\\d+\\.\\d+\\.\\d+'",
28+
"replace": "version '{{versionWithoutPrerelease}}'"
29+
}
30+
]
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)