From 08a31d354182c6cf6a1e10dde3826f6f1b3400c8 Mon Sep 17 00:00:00 2001 From: John White <750350+johnhwhite@users.noreply.github.com> Date: Tue, 23 Jan 2024 21:47:30 -0500 Subject: [PATCH] chore: setup 10.x.x prerelease (#1954) --- .github/workflows/release-please.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index f9174922b1..55618e2076 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -7,8 +7,8 @@ on: branches: - main env: - PRERELEASE: 'false' - MAJOR_VERSION: 9 + PRERELEASE: 'true' + MAJOR_VERSION: 10 jobs: release: runs-on: ubuntu-latest @@ -24,10 +24,14 @@ jobs: CURRENT_RELEASE=$(gh release list -R blackbaud/skyux|grep '^v${{ env.MAJOR_VERSION }}'|head -1|cut -d$'\t' -f 3) # Bump the prerelease version. - NEXT_VERSION=$(npx --yes semver -i prerelease $CURRENT_RELEASE) + if [ -z "$CURRENT_RELEASE" ]; then + NEXT_VERSION="${{ env.MAJOR_VERSION }}.0.0-alpha.0" + else + NEXT_VERSION=$(npx --yes semver -i prerelease $CURRENT_RELEASE) + fi # If version is empty, exit. - if [ -z "$CURRENT_RELEASE" ] || [ -z "$NEXT_VERSION" ]; then + if [ -z "$NEXT_VERSION" ]; then echo "Not able to determine prerelease version." exit 1 fi