Skip to content

Commit

Permalink
fix: Semantic release implementation (#4)
Browse files Browse the repository at this point in the history
* fix: release management using conventional commits and semantic-release
  • Loading branch information
NeillShazly committed Sep 30, 2022
1 parent 77678de commit 8491313
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/packer.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Packer

on:
push:
release:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+' # matches vX.X.X versioning

jobs:
packer:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
paths:
- "*.hcl"
- ".github/workflows/release.yml"
- ".releaserc.yaml"
- ".releaserc.yml"
workflow_dispatch: {}

concurrency:
Expand All @@ -28,5 +28,7 @@ jobs:
- name: Release
id: release
uses: liatrio/github-actions/conventional-release@master
with:
dryRun: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
branches:
- main
repositoryUrl: https://github.com/liatrio/packer-azure-github-runner
preset: conventionalcommits
tagFormat: "v${version}"
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "conventional-release",
"version": "1.0.0",
"private": true,
"dependencies": {
"@liatrio/semantic-release-helm": "^2.0.0",
"@semantic-release/git": "^10.0.1",
"conventional-changelog-conventionalcommits": "^4.6.1",
"semantic-release": "^18.0.0"
}
}

0 comments on commit 8491313

Please sign in to comment.