DEV Community

drey
drey

Posted on

github action generating version tag out of order

I have an existing repository with 150 commits and latest release as v3.00 which was created manually. moving forward I want to use github action to automate that process but the below code when used with my existing repo, is creating a version tag out of order v0.1.0.please how can i fix this issue.

on:
  push:
   branches:
     - master

jobs:
  release:
   runs-on: ubuntu-latest

   steps:
    - name: checkout
      uses: actions/checkout@v2

    - name: conventional changelog action
      id: changelog
      uses: TriPSs/conventional-changelog-action@latest
      with:
        github-token: `"${{ secrets.GITHUB_TOKEN }}"`

    - name: create release
      uses: softprops/action-gh-release@v1
      if: `${{steps.changelog.outputs.skipped == 'false'}}`
      env:
        GITHUB_TOKEN: `${{ secrets.GITHUB_TOKEN }}`
      with:
          tag_name: `${{ steps.changelog.outputs.tag }}`
          name: `${{ steps.changelog.outputs.tag }}`
          body: `${{steps.changelog.outputs.clean_changelog}}`
          draft: false
          prerelease: false
Enter fullscreen mode Exit fullscreen mode

Top comments (0)