Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
@@ -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
...
47 changes: 47 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -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 }}"


...
42 changes: 42 additions & 0 deletions .releaserc.mjs
Original file line number Diff line number Diff line change
@@ -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
}
]
]
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
2 changes: 1 addition & 1 deletion ConfigFile.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: ConfigFile
Version: 1.2.0
Version: 1.1.2.1
License: BSD3
Maintainer: John Goerzen <jgoerzen@complete.org>
Author: John Goerzen
Expand Down