Skip to content

Commit

Permalink
Merge pull request #1030 from twilio/FLEXY-5323-v6-test
Browse files Browse the repository at this point in the history
FLEXY-5323 test for v6 with cheerio patch fix
  • Loading branch information
hsingla005 authored Aug 16, 2024
2 parents 362574a + d88ebd5 commit 9a19cfa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/manual_alpha_release_v6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ on:
jobs:
release-public-version:
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/~reusable_public_publish.yaml
uses: ./.github/workflows/~reusable_publish.yaml
with:
TAG: alpha
VERSION: 6.4.2
VERSION: patch
BRANCH: FLEXY-5323-6.4.2
ENVIRONMENT: alpha_release
secrets:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/manual_public_release_v6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ on:
jobs:
release-public-version:
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/~reusable_public_publish.yaml
uses: ./.github/workflows/~reusable_publish.yaml
with:
TAG: public
VERSION: 6.4.2
VERSION: patch
BRANCH: FLEXY-5323-6.4.2
ENVIRONMENT: public_release
secrets:
Expand Down
14 changes: 7 additions & 7 deletions bin/publish
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ function getJsonValue() {

tag="${1}"
bump="${2}"
branch="${BRANCH}"
currentVersion=$(cat ./lerna.json | getJsonValue 'version' | cut -f1 -d"-")
branch="FLEXY-5323-6.4.2"
currentVersion="6.4.1"
semver=( ${currentVersion//./ } )
major="${semver[0]}"
minor="${semver[1]}"
Expand All @@ -36,11 +36,11 @@ if [ "${bump}" != "patch" ] && [ "${bump}" != "minor" ] && [ "${bump}" != "major
exit 1
fi

# Verify tag and branch
if [ "${tag}" == "public" ] && [ "${branch}" != "main" ] ; then
echo "Public release must be done on the main branch"
exit 1
fi
# # Verify tag and branch
# if [ "${tag}" == "public" ] && [ "${branch}" != "main" ] ; then
# echo "Public release must be done on the main branch"
# exit 1
# fi
if [ "${tag}" == "beta" ] && [[ ! "${branch}" =~ ^v.-beta$ ]] ; then
echo "Beta release must be done on the v*-beta branch"
exit 1
Expand Down

0 comments on commit 9a19cfa

Please sign in to comment.