Skip to content
Merged
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
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ env:
# newer release. Used by the build and publish jobs to stamp the tag version
# into Cargo.toml before building/publishing.
CARGO_EDIT_VERSION: "0.13.13"
# Pin the preset because its type schema is part of .releaserc.json.
CONVENTIONAL_CHANGELOG_PRESET_VERSION: "9.3.1"

jobs:
semantic-release:
Expand All @@ -50,6 +52,19 @@ jobs:
shallow: false
token: ${{ steps.app.outputs.token }}

# The release action checks out the repository again and removes workspace
# dependencies. Install the preset above the workspace so Node can find it.
- name: Install release-note preset
run: >-
npm install
--prefix "$GITHUB_WORKSPACE/.."
--no-save
--package-lock=false
--ignore-scripts
--no-audit
--no-fund
conventional-changelog-conventionalcommits@${CONVENTIONAL_CHANGELOG_PRESET_VERSION}

- name: Version and release
id: version-release
uses: alchemaxinc/composite-toolbox/semantic-release@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-deps-cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
base-branch: "develop"
merge-method: "squash"
branch-prefix: ${{ env.BRANCH_PREFIX }}
pr-title: "fix(deps): update cargo dependencies"
commit-message: "fix(deps): update cargo dependencies"
pr-title: "build(deps): update cargo dependencies"
commit-message: "build(deps): update cargo dependencies"

# The action leaves the working tree on the branch it created, so the
# regenerated output lands on the same pull request.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-deps-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
merge-method: "squash"
file-glob: ".github/**/*.yml"
branch-prefix: "update-actions"
pr-title: "chore(ci): update github actions"
commit-message: "chore(ci): update github actions"
pr-title: "ci(deps): update github actions"
commit-message: "ci(deps): update github actions"
110 changes: 108 additions & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,114 @@
{
"branches": ["main", { "name": "develop", "prerelease": "dev" }],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"presetConfig": {},
"releaseRules": [
{
"breaking": true,
"type": "build",
"scope": "deps",
"release": "major"
},
{ "type": "build", "scope": "deps", "release": "patch" }
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{
"type": "build",
"scope": "deps",
"section": "Dependency Updates"
},
{
"type": "chore",
"scope": "deps",
"section": "Dependency Updates"
},
{
"type": "ci",
"scope": "deps",
"section": "Dependency Updates"
},
{
"type": "docs",
"scope": "deps",
"section": "Dependency Updates"
},
{
"type": "feat",
"scope": "deps",
"section": "Dependency Updates"
},
{
"type": "fix",
"scope": "deps",
"section": "Dependency Updates"
},
{
"type": "perf",
"scope": "deps",
"section": "Dependency Updates"
},
{
"type": "refactor",
"scope": "deps",
"section": "Dependency Updates"
},
{
"type": "revert",
"scope": "deps",
"section": "Dependency Updates"
},
{
"type": "style",
"scope": "deps",
"section": "Dependency Updates"
},
{
"type": "test",
"scope": "deps",
"section": "Dependency Updates"
},
{ "type": "feat", "section": "Features" },
{ "type": "feature", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "revert", "section": "Reverts" },
{ "type": "docs", "section": "Documentation", "hidden": true },
{ "type": "style", "section": "Styles", "hidden": true },
{
"type": "chore",
"section": "Miscellaneous Chores",
"hidden": true
},
{
"type": "refactor",
"section": "Code Refactoring",
"hidden": true
},
{ "type": "test", "section": "Tests", "hidden": true },
{ "type": "build", "section": "Build System", "hidden": true },
{
"type": "ci",
"section": "Continuous Integration",
"hidden": true
}
]
},
"writerOpts": {
"commitGroupsSort": "title"
}
}
],
[
"@semantic-release/github",
{
Expand Down
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ Write commit messages in the
[Conventional Commits](https://www.conventionalcommits.org) form. `commitlint`
checks them, and each line has a limit of 150 characters.

Dependency updates use the `deps` scope. Cargo updates use `build(deps)`, and
GitHub Actions updates use `ci(deps)`. semantic-release groups these commits
under `Dependency Updates`.

## Bug reports

Give the smallest specification that shows the problem. This tool reads a
Expand Down
Loading