diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 30c6e74..ccfa31f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,10 +36,7 @@ jobs: uses: actions/checkout@v2 with: submodules: recursive - persist-credentials: false - - uses: actions/setup-node@v2 - with: - node-version: '14' + persist-credentials: false - name: Docker meta id: meta uses: docker/metadata-action@v3 @@ -81,11 +78,6 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - name: Semantic Release - uses: cycjimmy/semantic-release-action@v2.5.4 - with: - semantic_version: 17 - extra_plugins: | - @semantic-release/exec - @semantic-release/git + uses: splunk/semantic-release-action@v1.2 env: GITHUB_TOKEN: ${{ secrets.GHCR_PAT }} diff --git a/.releaserc b/.releaserc index 3cd9188..cbecd8e 100644 --- a/.releaserc +++ b/.releaserc @@ -13,7 +13,9 @@ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", ["@semantic-release/exec", { - "prepareCmd": 'yq -i eval ".runs.image = \"docker://ghcr.io/splunk/addonfactory-sample-scanner:v${nextRelease.version}\"" action.yml' + "prepareCmd": 'yq -i eval ".runs.image = \"docker://ghcr.io/splunk/addonfactory-sample-scanner:v${nextRelease.version}\"" action.yml', + "verifyReleaseCmd": "echo \"version=${nextRelease.version}\" >> $GITHUB_OUTPUT", + "successCmd": "echo \"new_release_published=${'true'}\" >> $GITHUB_OUTPUT" }], ["@semantic-release/git", { "assets": ["action.yml"], @@ -21,4 +23,4 @@ }], "@semantic-release/github" ] -} \ No newline at end of file +}