Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
ci: update release step
Browse files Browse the repository at this point in the history
  • Loading branch information
migara committed Apr 25, 2021
1 parent 1494296 commit e510690
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 28 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: CI/CD
on:
push:
branches:
- master
- main
- develop
pull_request:
schedule:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
release:
name: release
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [validate]
runs-on: ubuntu-latest

Expand All @@ -55,10 +55,9 @@ jobs:
id: release
uses: cycjimmy/semantic-release-action@v2
with:
semantic_version: 17.1.1
semantic_version: 17.4.2
extra_plugins: |
conventional-changelog-conventionalcommits@^4.4.0
conventional-changelog-conventionalcommits@^4.5.0
@semantic-release/git@^9.0.0
@semantic-release/exec@^5.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60 changes: 37 additions & 23 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
{
"branches": [
"master"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@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 [PyPI](https://pypi.org/project/pan-os-python/) and [GitHub release](<github_release_url>)\n\n> Posted by [semantic-release](https://github.com/semantic-release/semantic-release) bot"
}
]
],
"preset": "conventionalcommits"
"branches": [
"main"
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{
"breaking": true,
"release": "minor"
},
{
"type": "feat",
"release": "patch"
}
]
}
],
"@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/azurerm/latest) and [GitHub release](<github_release_url>)\n\n> Posted by [semantic-release](https://github.com/semantic-release/semantic-release) bot"
}
]
],
"preset": "conventionalcommits"
}

0 comments on commit e510690

Please sign in to comment.