Skip to content

Commit 96ce437

Browse files
authored
ci: 👷 add auto-release workflow from template (#83)
# Description Added from template. No review needed.
1 parent 85e2ccb commit 96ce437

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.cz.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[tool.commitizen]
2+
version = "0.1.0"
3+
bump_message = "build(version): :bookmark: update version from $current_version to $new_version"
4+
version_schema = "semver"
5+
version_provider = "commitizen"
6+
update_changelog_on_bump = true
7+
# Don't regenerate the changelog on every update
8+
changelog_incremental = true
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release project
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
# Limit token permissions for security
9+
permissions: read-all
10+
11+
jobs:
12+
release-project:
13+
# This job outputs env variables `previous_version` and `current_version`.
14+
# The workflow needs write permissions for `GITHUB_TOKEN` to create a release.
15+
permissions:
16+
contents: write
17+
uses: seedcase-project/.github/.github/workflows/reusable-release-project.yml@main
18+
with:
19+
app-id: ${{ vars.UPDATE_VERSION_APP_ID }}
20+
secrets:
21+
update-version-gh-token: ${{ secrets.UPDATE_VERSION_TOKEN }}

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Changelog
2+
3+
Since we follow [Conventional
4+
Commits](https://decisions.seedcase-project.org/why-conventional-commits),
5+
we're able to automatically create formal "releases" of the website
6+
based on our commit messages. Releases in the context of websites are
7+
simply snapshots in time of the website content. We use
8+
[Commitizen](https://decisions.seedcase-project.org/why-semantic-release-with-commitizen)
9+
to automatically create these releases using
10+
[SemVer](https://semverdoc.org) as the version numbering scheme.
11+
12+
Because releases are created based on commit messages, a new release is
13+
created quite often---sometimes several times in a day. This also means
14+
that any individual release will not have many changes within it. Below
15+
is a list of the releases we've made so far, along with what was changed
16+
within each release.

0 commit comments

Comments
 (0)