Skip to content

Commit

Permalink
feat(workflow): Add semantic-release configuration file
Browse files Browse the repository at this point in the history
sebastianczech committed Jul 7, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 01e54dc commit 1681317
Showing 3 changed files with 46 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/go_ci.yml → .github/workflows/pr_ci.yml
Original file line number Diff line number Diff line change
@@ -2,12 +2,10 @@
# A workflow used to get Go dependencies and test code
# END

name: Go CI
name: PR CI

on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
types:
- opened
2 changes: 1 addition & 1 deletion .github/workflows/release_ci.yml
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ on:

jobs:
release-prereqs:
name: Verify if a release is required
name: verify if a release is required
runs-on: ubuntu-latest
permissions:
contents: write
44 changes: 44 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"branches": [
"main"
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{
"breaking": true,
"release": "minor"
},
{
"type": "feat",
"release": "patch"
},
{
"type": "feat",
"scope": "MAJOR",
"release": "major"
}
]
}
],
"@semantic-release/release-notes-generator",
[
"@semantic-release/git",
{
"assets": [
"README.md"
],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github",
{
"successComment": ":tada: This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:\n\nThe release is available on [Terraform Registry](https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/latest) and [GitHub release](../releases/tag/v${nextRelease.version})\n\n> Posted by [semantic-release](https://github.com/semantic-release/semantic-release) bot"
}
]
],
"preset": "conventionalcommits"
}

0 comments on commit 1681317

Please sign in to comment.