Skip to content

Commit

Permalink
ci: update to internal semantic release action (splunk#260)
Browse files Browse the repository at this point in the history
* ci: update to internal semantic release action

* Update build-test-release.yml

* Update build-test-release.yml

* chore: update semantic-release-action version
  • Loading branch information
mkolasinski-splunk authored Jan 31, 2023
1 parent 5754360 commit 171d00d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
11 changes: 1 addition & 10 deletions ui/.github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ jobs:
#build if this is not set false
persist-credentials: false

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-python@v4
with:
python-version: "3.7"
Expand Down Expand Up @@ -119,11 +115,6 @@ jobs:
path: /tmp/splunk-ucc-ui.tgz

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3.2.0
with:
semantic_version: 19.0.3
extra_plugins: |
@semantic-release/exec
@semantic-release/git
uses: splunk/semantic-release-action@v1.2
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }}
13 changes: 9 additions & 4 deletions ui/.releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/exec", {
"prepareCmd": "echo ${nextRelease.version}>dist/VERSION",
"publishCmd": "tar -czf /tmp/splunk-ucc-ui.tgz -C dist ."
}],
[
"@semantic-release/exec",
{
"prepareCmd": "echo ${nextRelease.version}>dist/VERSION",
"publishCmd": "tar -czf /tmp/splunk-ucc-ui.tgz -C dist .",
"verifyReleaseCmd": "echo \"version=${nextRelease.version}\" >> $GITHUB_OUTPUT",
"successCmd": "echo \"new_release_published=${'true'}\" >> $GITHUB_OUTPUT"
}
],
[
"@semantic-release/git",
{
Expand Down

0 comments on commit 171d00d

Please sign in to comment.