diff --git a/.github/workflows/packer.yml b/.github/workflows/packer.yml index 167a281..5fb846b 100644 --- a/.github/workflows/packer.yml +++ b/.github/workflows/packer.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eecfbf7..5f99aec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: paths: - "*.hcl" - ".github/workflows/release.yml" - - ".releaserc.yaml" + - ".releaserc.yml" workflow_dispatch: {} concurrency: @@ -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 }} diff --git a/.releaserc.yml b/.releaserc.yml new file mode 100644 index 0000000..7a224f8 --- /dev/null +++ b/.releaserc.yml @@ -0,0 +1,7 @@ +--- +branches: + # - main + - semantic-release +repositoryUrl: https://github.com/liatrio/packer-azure-github-runner +preset: conventionalcommits +tagFormat: "v${version}" diff --git a/package.json b/package.json new file mode 100644 index 0000000..2a4b18a --- /dev/null +++ b/package.json @@ -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" + } + } \ No newline at end of file