Skip to content

Commit

Permalink
fix: update release script to allow releases from the main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lgersman committed Dec 3, 2024
1 parent c59365e commit 7741e80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source "$(realpath $0 | xargs dirname)/includes/bootstrap.sh"

# abort if we are not on the "main" branch
if [[ "$(git rev-parse --abbrev-ref HEAD)" != 'main' ]]; then
ionos.wordpress.log_error "You can only release from the develop branch"
ionos.wordpress.log_error "You can only release from the main branch"
exit 1
fi

Expand All @@ -29,7 +29,7 @@ mkdir -p ./tmp/release
# changeset does not support --format option as of now so we need to use the --output option
# see https://github.com/changesets/changesets/issues/1020
# fetch changeset status into ./tmp/release/status.json
pnpm changeset status --verbose --output ./tmp/release/status.json --since main
pnpm changeset status --verbose --output ./tmp/release/status.json
# count changesets
CHANGESETS_COUNT=$(jq '.changesets // [] | length' ./tmp/release/status.json)
if [[ $CHANGESETS_COUNT -eq 0 ]]; then
Expand Down

0 comments on commit 7741e80

Please sign in to comment.