-
-
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 #23318 from storybookjs/version-patch-from-7.0.26
Release: Patch 7.0.27
- Loading branch information
Showing
44 changed files
with
1,852 additions
and
1,022 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 |
---|---|---|
|
@@ -84,15 +84,15 @@ jobs: | |
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
git config --global user.name 'storybook-bot' | ||
git config --global user.email '32066757+storybook-[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 | ||
|
@@ -117,11 +117,11 @@ jobs: | |
- name: 'Commit changes to branch: version-patch-from-${{ steps.versions.outputs.current }}' | ||
working-directory: . | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
git config --global user.name 'storybook-bot' | ||
git config --global user.email '32066757+storybook-[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: | ||
|
@@ -121,11 +121,11 @@ jobs: | |
- name: 'Commit changes to branch: version-prerelease-from-${{ steps.bump-version.outputs.current-version }}' | ||
working-directory: . | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
git config --global user.name 'storybook-bot' | ||
git config --global user.email '32066757+storybook-[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 | ||
|
@@ -112,8 +133,8 @@ jobs: | |
- name: Merge ${{ github.ref_name }} into ${{ steps.target.outputs.target }} | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "storybook-bot" | ||
git config --global user.email "32066757+storybook-[email protected]" | ||
git fetch origin ${{ steps.target.outputs.target }} | ||
git checkout ${{ steps.target.outputs.target }} | ||
git merge ${{ github.ref_name }} | ||
|
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: 'Close stale issues that need reproduction or more info from OP' | ||
on: | ||
schedule: | ||
- cron: '30 1 * * *' | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
stale-issue-message: "Hi there! Thank you for opening this issue, but it has been marked as `stale` because we need more information to move forward. Could you please provide us with the requested reproduction or additional information that could help us better understand the problem? We'd love to resolve this issue, but we can't do it without your help!" | ||
close-issue-message: "I'm afraid we need to close this issue for now, since we can't take any action without the requested reproduction or additional information. But please don't hesitate to open a new issue if the problem persists – we're always happy to help. Thanks so much for your understanding." | ||
any-of-labels: 'needs reproduction,needs more info' | ||
exempt-issue-labels: 'needs triage' | ||
labels-to-add-when-unstale: 'needs triage' | ||
days-before-stale: 21 | ||
days-before-pr-stale: -1 |
Oops, something went wrong.