@@ -119,3 +119,39 @@ jobs:
119119 run : |
120120 git config user.name "github-actions[bot]"
121121 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
122+
123+ - name : Tag new version and update changelog
124+ env :
125+ PENDING_VERSION : ${{needs.stage_release.outputs.pending_version}}
126+ run : |
127+ commit-and-tag-version
128+
129+ NEW_VERSION=$(cat VERSION)
130+ RELEASE_COMMIT_ID=$(git rev-parse HEAD)
131+
132+ echo "PENDING_VERSION=${PENDING_VERSION}" >> $GITHUB_ENV
133+ echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV
134+ echo "RELEASE_COMMIT_ID=${RELEASE_COMMIT_ID}" >> $GITHUB_ENV
135+
136+ - name : Confirm version number
137+ if : ${{ env.PENDING_VERSION != env.NEW_VERSION }}
138+ run : |
139+ echo Pending release and actual release numbers do not match
140+ echo Pending release: $PENDING_VERSION
141+ echo Actual release: $NEW_VERSION
142+ exit 1
143+
144+ # TODO publish to npm and PyPi
145+
146+ # - name: Push new version to GitHub
147+ # run: |
148+ # git push origin HEAD:main
149+ # git push origin v$NEW_VERSION
150+
151+ # - name: Create GitHub release
152+ # uses: softprops/action-gh-release@v2
153+ # with:
154+ # name: v${{ env.NEW_VERSION }}
155+ # tag_name: v${{ env.NEW_VERSION }}
156+ # target_commitish: ${{ env.RELEASE_COMMIT_ID }}
157+ # body: See the [changelog](CHANGELOG.md) for details about the changes included in this release.
0 commit comments