-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23421 from storybookjs/cherry-pick-deferred-versi…
…oning Release tooling: Defer version bumping to the publish step - Cherry picking #23393
- Loading branch information
Showing
8 changed files
with
799 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,27 @@ jobs: | |
run: | | ||
yarn install | ||
- name: Apply deferred version bump and commit | ||
id: version-bump | ||
working-directory: . | ||
run: | | ||
CURRENT_VERSION=$(cat ./code/package.json | jq '.version') | ||
DEFERRED_NEXT_VERSION=$(cat ./code/package.json | jq '.deferredNextVersion') | ||
if [[ "$DEFERRED_NEXT_VERSION" == "null" ]]; then | ||
echo "No deferred version set, not bumping versions" | ||
exit 0 | ||
fi | ||
cd scripts | ||
yarn release:version --apply --verbose | ||
cd .. | ||
git config --global user.name "storybook-bot" | ||
git config --global user.email "[email protected]" | ||
git add . | ||
git commit -m "Bump version from $CURRENT_VERSION to $DEFERRED_NEXT_VERSION" || true | ||
git push origin ${{ github.ref_name }} | ||
- name: Get current version | ||
id: version | ||
run: yarn release:get-current-version | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.