Skip to content

Commit

Permalink
ci: automated versioning (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar authored Aug 1, 2023
1 parent 8b27210 commit facd4ef
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Bump version
run-name: Bump ${{ github.event.inputs.version }} version

on:
workflow_dispatch:
inputs:
version:
type: choice
description: Version
options:
- patch
- minor
- major

jobs:
version:
permissions:
contents: write
uses: crowdin/.github/.github/workflows/bump-version.yml@main
33 changes: 33 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"git": {
"push": true,
"commit": true,
"commitMessage": "chore: version ${version} [skip ci]",
"requireBranch": "master",
"changelog": false,
"tag": true
},
"github": {
"release": false
},
"plugins": {
"@j-ulrich/release-it-regex-bumper": {
"in": "build.gradle",
"out": [
{
"file": "README.md",
"search": {
"pattern": "\\d+\\.\\d+\\.\\d+",
"flags": "g"
},
"replace": "{{versionWithoutPrerelease}}"
},
{
"file": "build.gradle",
"search": "^version '\\d+\\.\\d+\\.\\d+'",
"replace": "version '{{versionWithoutPrerelease}}'"
}
]
}
}
}

0 comments on commit facd4ef

Please sign in to comment.