diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9c82280 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 + diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..9c789e6 --- /dev/null +++ b/.releaserc.json @@ -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" + } + ] + ] +}