diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4345c68..a79d4d5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,16 +1,16 @@ -name: Release on: push: - branches: - - master - + branches: [master] jobs: - release: + versioning: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@master - - name: Release - uses: codfish/semantic-release-action@v2.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: calculate version + id: calculate-version + uses: bitshifted/git-auto-semver@v1.1.0 + with: + main_branch: master + create_tag: true + tag_prefix: 'tags' + - name: Use version + run: 'echo "Calculated version: ${{ steps.calculate-version.outputs.version-string }}"' diff --git a/.releaserc b/.releaserc deleted file mode 100644 index a846df5..0000000 --- a/.releaserc +++ /dev/null @@ -1,7 +0,0 @@ -branches: - - name: "master" - -plugins: - - "@semantic-release/commit-analyzer" - - "@semantic-release/release-notes-generator" - - "@semantic-release/GitHub"