8080 NEW_VERSION=${{ steps.bump_version.outputs.new_version }}
8181 pnpm version $NEW_VERSION --no-git-tag-version --allow-same-version
8282
83- - name : Prepare changelog script
84- run : chmod +x .github/scripts/generate-changelog.sh
85-
86- - name : Generate Changelog
87- id : changelog
88- env :
89- NEW_VERSION : ${{ steps.bump_version.outputs.new_version }}
90- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
91-
92- run : .github/scripts/generate-changelog.sh
93-
9483 - name : Get the latest commit hash and version tag
9584 run : |
9685 echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
9988 - name : Commit and Tag Release
10089 run : |
10190 git pull
102- git add package.json pnpm-lock.yaml changelog.md
91+ git add package.json pnpm-lock.yaml
10392 git commit -m "chore: release version ${{ steps.bump_version.outputs.new_version }}"
10493 git tag "v${{ steps.bump_version.outputs.new_version }}"
10594 git push
@@ -113,15 +102,3 @@ jobs:
113102 fi
114103 git merge main --no-ff -m "chore: release version ${{ steps.bump_version.outputs.new_version }}"
115104 git push --set-upstream origin stable --force
116-
117- - name : Create GitHub Release
118- env :
119- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
120- run : |
121- VERSION="v${{ steps.bump_version.outputs.new_version }}"
122- # Save changelog to a file
123- echo "${{ steps.changelog.outputs.content }}" > release_notes.md
124- gh release create "$VERSION" \
125- --title "Release $VERSION" \
126- --notes-file release_notes.md \
127- --target stable
0 commit comments