Skip to content

Commit

Permalink
feat: add semver tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
tractorcow committed May 27, 2024
1 parent 5cbd465 commit 3581316
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release
on:
push:
branches:
- master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
tag:
name: Tag with semantic release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Tag semantic release
id: tag
uses: pixelfusion/actions/tag@v1

17 changes: 17 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"branches": [
"master"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/git",
"@semantic-release/github",
[
"@semantic-release/exec",
{
"successCmd": "echo '${nextRelease.gitTag}' > version.txt"
}
]
]
}

0 comments on commit 3581316

Please sign in to comment.