diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml new file mode 100644 index 00000000..a3472b39 --- /dev/null +++ b/.github/workflows/conventional-commits.yml @@ -0,0 +1,16 @@ +--- +name: Conventional commits + +on: + pull_request: + branches: + - master + +jobs: + build: + name: Conventional commits + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: webiny/action-conventional-commits@v1.3.0 +... diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml new file mode 100644 index 00000000..4f861c98 --- /dev/null +++ b/.github/workflows/semantic-release.yml @@ -0,0 +1,47 @@ +--- +name: Semantic release +on: + push: + branches: + - master + - semantic-release + pull_request: + branches: + - master + +jobs: + build: + name: Semantic release + environment: master + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Semantic release + id: semantic + uses: cycjimmy/semantic-release-action@v4 + env: + GITHUB_TOKEN: ${{ secrets.GH_PAT }} + HACKAGE_TOKEN: ${{ secrets.HACKAGE_TOKEN }} + + with: + ci: ${{ env.GITHUB_REF == 'refs/head/master' }} + extra_plugins: | + semantic-release-mirror-version + semantic-release-hackage + + - name: Semantic release output + run: | + echo dry_run: ${{ env.GITHUB_REF != 'refs/head/master' }} + echo published: ${{ steps.semantic.outputs.new_release_published }} + echo last_release: ${{ steps.semantic.outputs.last_release_version }} + echo new_version: ${{ steps.semantic.outputs.new_release_version }} + echo git_head: ${{ steps.semantic.outputs.new_release_git_head }} + + echo release_notes: + echo "${{ steps.semantic.outputs.new_release_notes }}" + + +... diff --git a/.releaserc.mjs b/.releaserc.mjs new file mode 100644 index 00000000..4fb9501b --- /dev/null +++ b/.releaserc.mjs @@ -0,0 +1,42 @@ +/** + * @type {import('semantic-release').GlobalConfig} + */ +export default { + branches: ["semantic-release"], + tagFormat: "${version}", + plugins: [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + [ + "semantic-release-mirror-version", + { + "fileGlob": "@(package.yaml|ConfigFile.cabal)", + "placeholderRegExp": "0.0.0-dev" + } + ], + [ + "@semantic-release/changelog", + { + changelogFile: "CHANGELOG.md", + changelogTitle: "Changelog" + } + ], + [ + "@semantic-release/git", + { + assets: [ + "CHANGELOG.md", + "package.yaml", + "ConfigFile.cabal" + ] + } + ], + "@semantic-release/github", + [ + "semantic-release-hackage", + { + "publishDocumentation": true + } + ] + ] +} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..1ccc35ec --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,8 @@ +Changelog + +## [1.2.1](https://github.com/drlkf/configfile-fork/compare/1.2.0...1.2.1) (2025-06-30) + + +### Bug Fixes + +* trigger new version ([b74692a](https://github.com/drlkf/configfile-fork/commit/b74692ad6535b0f29148af8bcf32282d7c3ccbb1)) diff --git a/ConfigFile.cabal b/ConfigFile.cabal index 3df737e6..f038ba24 100644 --- a/ConfigFile.cabal +++ b/ConfigFile.cabal @@ -1,5 +1,5 @@ Name: ConfigFile -Version: 1.2.0 +Version: 1.1.2.1 License: BSD3 Maintainer: John Goerzen Author: John Goerzen