Skip to content

Commit

Permalink
fix(release): update semver alongside release
Browse files Browse the repository at this point in the history
  • Loading branch information
artemrys committed May 8, 2024
1 parent c36ce69 commit 1dad1dd
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: Release

on:
push:
branches:
- "main"
- "develop"
tags:
- "v*"
pull_request:
branches:
- "main"
- "develop"

jobs:
pre-commit:
runs-on: ubuntu-latest
Expand All @@ -20,17 +24,14 @@ jobs:
- uses: pre-commit/[email protected]

release:
name: release
needs: pre-commit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
submodules: false
persist-credentials: false
- name: Semantic release
id: semantic
uses: splunk/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }}
Expand All @@ -41,3 +42,11 @@ jobs:
passphrase: ${{ secrets.SA_GPG_PASSPHRASE }}
extra_plugins: |
@google/semantic-release-replace-plugin
update-semver:
if: startsWith(github.ref, 'refs/tags/v')
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: splunk/addonfactory-update-semver@v1

0 comments on commit 1dad1dd

Please sign in to comment.