Skip to content

Commit a53708b

Browse files
authored
feat!: set up version 1
1 parent 0fb1fc6 commit a53708b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,16 @@ jobs:
105105
fi
106106
107107
NEW_VERSION="$MAJOR.$MINOR.$PATCH"
108-
echo "Bumping version from $CURRENT_VERSION to $NEW_VERSION"
108+
PRE_RELEASE_TAG="$NEW_VERSION-pre"
109+
echo "Bumping version from $CURRENT_VERSION to $PRE_RELEASE_TAG"
109110
110111
git config user.name "GitHub Actions"
111112
git config user.email "actions@github.com"
112113
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
113114
git push origin ${{ github.ref_name }}
114115
115-
git tag -a "$NEW_VERSION" -m "$NEW_VERSION"
116-
git push origin "$NEW_VERSION"
116+
git tag -a "$PRE_RELEASE_TAG" -m "$PRE_RELEASE_TAG"
117+
git push origin "$PRE_RELEASE_TAG"
117118
118119
# Generate release notes from commits since last tag
119120
if [ -z "$LATEST_TAG" ]; then
@@ -125,7 +126,7 @@ jobs:
125126
echo "Release notes:"
126127
echo "$RELEASE_NOTES"
127128
128-
gh release create "$NEW_VERSION" \
129-
--title "Pre-release $NEW_VERSION" \
129+
gh release create "$PRE_RELEASE_TAG" \
130+
--title "Pre-release $PRE_RELEASE_TAG" \
130131
--notes "$RELEASE_NOTES" \
131132
--prerelease

0 commit comments

Comments
 (0)