Skip to content

Commit

Permalink
build: simplify release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
steveteuber committed Mar 11, 2024
1 parent 81df7a6 commit 483aaa8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ jobs:
fetch-depth: 0

- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update Major Tag
if: ${{ steps.semantic.outputs.new_release_published == 'true' }}
run: git push -f origin HEAD:refs/tags/v${MAJOR_VERSION}
env:
MAJOR_VERSION: ${{ steps.semantic.outputs.new_release_major_version }}

with:
extra_plugins: semantic-release-major-tag
11 changes: 11 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
"semantic-release-major-tag"
]
}
7 changes: 0 additions & 7 deletions .releaserc.yml

This file was deleted.

File renamed without changes.

0 comments on commit 483aaa8

Please sign in to comment.