diff --git a/.cz.toml b/.cz.toml new file mode 100644 index 0000000..536bb02 --- /dev/null +++ b/.cz.toml @@ -0,0 +1,8 @@ +[tool.commitizen] +version = "0.1.0" +bump_message = "build(version): :bookmark: update version from $current_version to $new_version [skip ci]" +version_schema = "semver" +version_provider = "commitizen" +update_changelog_on_bump = true +# Don't regenerate the changelog on every update +changelog_incremental = true diff --git a/.github/workflows/release-project.yml b/.github/workflows/release-project.yml new file mode 100644 index 0000000..b0aebf2 --- /dev/null +++ b/.github/workflows/release-project.yml @@ -0,0 +1,21 @@ +name: Release project + +on: + push: + branches: + - main + +# Limit token permissions for security +permissions: read-all + +jobs: + release-package: + # This job outputs env variables `previous_version` and `current_version`. + # Only give permissions for this job. + permissions: + contents: write + uses: seedcase-project/.github/.github/workflows/reusable-release-project.yml@main + with: + app-id: ${{ vars.UPDATE_VERSION_APP_ID }} + secrets: + update-version-gh-token: ${{ secrets.UPDATE_VERSION_TOKEN }}