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 2b9490b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 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
15 changes: 0 additions & 15 deletions .github/workflows/update_semver.yml

This file was deleted.

0 comments on commit 2b9490b

Please sign in to comment.