From e69b554aaf3ef59bb24f26b9c09a0a646310aa6c Mon Sep 17 00:00:00 2001 From: Artem Rys Date: Wed, 8 May 2024 17:55:02 +0200 Subject: [PATCH] fix(release): update semver (#47) --- .github/workflows/release.yml | 9 ++++++++- .releaserc | 22 ---------------------- 2 files changed, 8 insertions(+), 23 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ab67b8..874fe42 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: submodules: false persist-credentials: false - name: Semantic release - uses: splunk/semantic-release-action@v1.3.7 + uses: ./ env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }} with: @@ -50,3 +50,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: splunk/addonfactory-update-semver@v1 + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }} + with: + git_committer_name: ${{ secrets.SA_GH_USER_NAME }} + git_committer_email: ${{ secrets.SA_GH_USER_EMAIL }} + gpg_private_key: ${{ secrets.SA_GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.SA_GPG_PASSPHRASE }} diff --git a/.releaserc b/.releaserc index 1732eb3..8e8830d 100644 --- a/.releaserc +++ b/.releaserc @@ -7,28 +7,6 @@ ], plugins: [ - "@semantic-release/commit-analyzer", - [ - "@google/semantic-release-replace-plugin", - { - "replacements": [ - { - "files": [".github/workflows/release.yml"], - "from": "uses: splunk/semantic-release-action@.*", - "to": "uses: splunk/semantic-release-action@v${nextRelease.version}", - "results": [ - { - "file": ".github/workflows/release.yml", - "hasChanged": true, - "numMatches": 1, - "numReplacements": 1 - } - ], - "countMatches": true - } - ] - } - ], "@semantic-release/commit-analyzer", [ "@semantic-release/exec",