File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,15 +36,13 @@ jobs:
3636 echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
3737 echo "skipped=false" >> "$GITHUB_OUTPUT"
3838
39- - name : Commit and tag
39+ - name : Tag
4040 if : steps.bump.outputs.skipped != 'true'
4141 run : |
4242 git config user.name "github-actions[bot]"
4343 git config user.email "github-actions[bot]@users.noreply.github.com"
44- git add VERSION.txt
45- git commit -m "chore: release ${{ steps.bump.outputs.new_version }}"
4644 git tag "v${{ steps.bump.outputs.new_version }}"
47- git push origin develop --follow-tags
45+ git push origin "v${{ steps.bump.outputs.new_version }}"
4846
4947 publish-windows :
5048 needs : bump-version
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- # Computes the next rc version from conventional commits since the last tag,
3- # writes VERSION.txt, and prints the new version to stdout.
2+ # Computes the next rc version from conventional commits since the last tag
3+ # and prints it to stdout. Does not modify any files .
44#
55# Usage: bump-prerelease.sh
66# Output: the new version string, e.g. 0.3.0-rc.2
6868ALPHA_N=$(( ALPHA_N + 1 ))
6969NEW_VERSION=" ${MAJOR} .${MINOR} .${PATCH} -rc.${ALPHA_N} "
7070
71- printf ' %s\n' " $NEW_VERSION " > " $VERSION_FILE "
7271echo " $NEW_VERSION "
You can’t perform that action at this time.
0 commit comments