-
-
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 branch 'storybookjs:next' into iqbal
- Loading branch information
Showing
10 changed files
with
286 additions
and
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,11 +88,11 @@ jobs: | |
git config --global user.email '[email protected]' | ||
yarn release:pick-patches | ||
- name: Bump version | ||
- name: Bump version deferred | ||
id: bump-version | ||
if: steps.unreleased-changes.outputs.has-changes-to-release == 'true' | ||
run: | | ||
yarn release:version --release-type patch --verbose | ||
yarn release:version --deferred --release-type patch --verbose | ||
# We need the current version to set the branch name, even when not bumping the version | ||
- name: Get current version | ||
|
@@ -121,7 +121,7 @@ jobs: | |
git config --global user.email '[email protected]' | ||
git checkout -b version-patch-from-${{ steps.versions.outputs.current }} | ||
git add . | ||
git commit -m "Bump version from ${{ steps.versions.outputs.current }} to ${{ steps.versions.outputs.next }}" || true | ||
git commit -m "Write changelog for ${{ steps.versions.outputs.next }}" || true | ||
git push --force origin version-patch-from-${{ steps.versions.outputs.current }} | ||
- name: Generate PR description | ||
|
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 |
---|---|---|
|
@@ -107,10 +107,10 @@ jobs: | |
gh run cancel ${{ github.run_id }} | ||
gh run watch ${{ github.run_id }} | ||
- name: Bump version | ||
- name: Bump version deferred | ||
id: bump-version | ||
run: | | ||
yarn release:version --release-type ${{ inputs.release-type || 'prerelease' }} ${{ inputs.pre-id && format('{0} {1}', '--pre-id', inputs.pre-id) || '' }} --verbose | ||
yarn release:version --deferred --release-type ${{ inputs.release-type || 'prerelease' }} ${{ inputs.pre-id && format('{0} {1}', '--pre-id', inputs.pre-id) || '' }} --verbose | ||
- name: Write changelog | ||
env: | ||
|
@@ -125,7 +125,7 @@ jobs: | |
git config --global user.email '[email protected]' | ||
git checkout -b version-prerelease-from-${{ steps.bump-version.outputs.current-version }} | ||
git add . | ||
git commit -m "Bump version from ${{ steps.bump-version.outputs.current-version }} to ${{ steps.bump-version.outputs.next-version }}" || true | ||
git commit -m "Write changelog for ${{ steps.bump-version.outputs.next-version }}" || true | ||
git push --force origin version-prerelease-from-${{ steps.bump-version.outputs.current-version }} | ||
- name: Generate PR description | ||
|
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 | ||
|
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
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.