Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: Prerelease 7.1.0-rc.2 #23414

Merged
merged 63 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
e89a3ad
exit when user does not want to select a storybook project type
yannbf Jun 23, 2023
c85081b
move react up in project types order
yannbf Jun 23, 2023
6542983
bump @sveltejs/vite-plugin-svelte
JReinhold Jun 27, 2023
ab1b9c2
Merge branch 'next' of github.com:storybookjs/storybook into bump-sve…
JReinhold Jul 4, 2023
9e47ab3
Ignore eslint error
valentinpalkovic Jul 6, 2023
0a58cc6
Introduce ci:normal label
valentinpalkovic Jul 6, 2023
9f8d871
Adjust Danger.js to enforce setting one of the ci labels
valentinpalkovic Jul 6, 2023
6715c52
Do not run a workflow per default
valentinpalkovic Jul 6, 2023
d1473ec
Add noop job to trick circleci
valentinpalkovic Jul 6, 2023
1cd27de
add defer options
JReinhold Jul 6, 2023
de5e894
Merge branch 'next' of github.com:storybookjs/storybook into bump-sve…
JReinhold Jul 6, 2023
7193c36
Retrigger pipeline
valentinpalkovic Jul 6, 2023
c409607
Merge branch 'next' into valentin/introduce-ci-normal
valentinpalkovic Jul 7, 2023
c780001
Merge branch 'next' into fix/exit-on-init-unknown-project
valentinpalkovic Jul 10, 2023
f306128
Remove noop workflow and rename 'pr' workflow to 'normal'
valentinpalkovic Jul 10, 2023
2296185
Merge branch 'next' of github.com:storybookjs/storybook into bump-sve…
JReinhold Jul 10, 2023
9b3303b
add tests for --deferred and --apply failures
JReinhold Jul 10, 2023
63073b4
add deferred logic and tests
JReinhold Jul 10, 2023
fa2612b
add apply logic and tests
JReinhold Jul 10, 2023
cc0dbb8
add apply bash step to publish
JReinhold Jul 10, 2023
7857c40
Merge branch 'next' of github.com:storybookjs/storybook into delay-ve…
JReinhold Jul 10, 2023
3f1ac95
set correct git user
JReinhold Jul 10, 2023
1ceb360
defer version bumps in workflows
JReinhold Jul 10, 2023
192d1da
add warning about existing deferredNextVersion
JReinhold Jul 11, 2023
4463962
fix apply step in publish
JReinhold Jul 11, 2023
e283b9a
update docs with deferred versioning flow
JReinhold Jul 11, 2023
bbc71e0
fix writeJson assertions
JReinhold Jul 11, 2023
7d3df77
add note about deferring locally
JReinhold Jul 11, 2023
bc2114c
Only cancel in-progress jobs or runs for the current workflow
valentinpalkovic Jul 11, 2023
1dce994
Merge branch 'next' into valentin/introduce-ci-normal
valentinpalkovic Jul 11, 2023
3806809
Merge pull request #23407 from storybookjs/fix-new-patch-labels
JReinhold Jul 11, 2023
dcb93a7
Merge pull request #23201 from storybookjs/fix/exit-on-init-unknown-p…
yannbf Jul 11, 2023
7bc6af6
Merge branch 'next-release' into next
storybook-bot Jul 11, 2023
4ff1a40
Adds the disable notification to the documentation
jonniebigodes Jul 11, 2023
ed08210
set playwright version to 1.36.0
ndelangen Jul 11, 2023
1de0986
Merge branch 'next' of github.com:storybookjs/storybook into cherry-p…
JReinhold Jul 11, 2023
1e45e34
update snapshot
JReinhold Jul 11, 2023
1bfd4f8
Merge pull request #23419 from storybookjs/norbert/fix-playwright-ver…
ndelangen Jul 11, 2023
aa547a0
Merge branch 'next' of github.com:storybookjs/storybook into bump-sve…
JReinhold Jul 11, 2023
f350818
Merge branch 'next' into cherry-pick-patch-label-fix
JReinhold Jul 11, 2023
bbc275f
Fix Danger.js output
valentinpalkovic Jul 11, 2023
388a899
Merge branch 'next' into valentin/introduce-ci-normal
valentinpalkovic Jul 12, 2023
fb5d056
Merge pull request #23233 from storybookjs/bump-svelte-vite-dep
JReinhold Jul 12, 2023
a930066
Merge pull request #23393 from storybookjs/delay-version-bump
JReinhold Jul 12, 2023
204eb01
Merge pull request #23409 from storybookjs/cherry-pick-patch-label-fix
JReinhold Jul 12, 2023
34683a3
fix inconsistent stories in nextjs example
yannbf Jul 12, 2023
4e38ccc
Merge branch 'next' into fix/nextjs-inconsistent-snapshots
yannbf Jul 12, 2023
3810fd1
improve onboarding detection in whats new module
yannbf Jul 12, 2023
f76b060
Merge pull request #23422 from storybookjs/fix/nextjs-inconsistent-sn…
ndelangen Jul 12, 2023
a63cfe2
Merge branch 'next' into chore_docs_add_disable_notification_config
jonniebigodes Jul 12, 2023
d3f7139
Fix language detection to circumvent detecting Typescript, although i…
valentinpalkovic Jul 12, 2023
2d47945
Merge pull request #23417 from storybookjs/chore_docs_add_disable_not…
jonniebigodes Jul 12, 2023
fa6b477
Merge pull request #23426 from storybookjs/valentin/fix-typescript-ve…
valentinpalkovic Jul 12, 2023
f006800
Update CHANGELOG.md for v7.0.27
storybook-bot Jul 12, 2023
ca8a47a
Telemetry: Add globals usage to project.json
shilman Jul 13, 2023
1b627ae
dont self-trigger publish workflow in publish workflow
JReinhold Jul 13, 2023
4f1fe59
Merge pull request #23432 from storybookjs/fix-double-publishing
JReinhold Jul 13, 2023
04b9e28
Merge pull request #23431 from storybookjs/shilman/globals-telemetry
shilman Jul 13, 2023
41973a7
Merge pull request #23424 from storybookjs/fix/whats-new-onboarding-d…
kasperpeulen Jul 13, 2023
6f4883c
Merge pull request #23335 from storybookjs/valentin/introduce-ci-normal
valentinpalkovic Jul 13, 2023
79c01df
Skip the default CircleCI workflow when no workflow argument is set
zmarkan Jul 13, 2023
471bd4d
Merge pull request #23436 from zmarkan/skip-default-ci-workflow
JReinhold Jul 13, 2023
4124e95
Write changelog for 7.1.0-rc.2
storybook-bot Jul 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 6 additions & 59 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ parameters:
workflow:
description: Which workflow to run
type: enum
enum: ['ci', 'pr', 'merged', 'daily']
default: 'ci'
enum: ['normal', 'merged', 'daily', 'skipped']
default: 'skipped'

executors:
sb_node_16_classic:
Expand Down Expand Up @@ -43,7 +43,7 @@ executors:
default: 'small'
working_directory: /tmp/storybook
docker:
- image: mcr.microsoft.com/playwright:v1.35.0-focal
- image: mcr.microsoft.com/playwright:v1.36.0-focal
environment:
NODE_OPTIONS: --max_old_space_size=6144
resource_class: <<parameters.class>>
Expand Down Expand Up @@ -257,7 +257,6 @@ jobs:
parameters:
parallelism:
type: integer
default: 2
executor:
class: medium
name: sb_node_16_browsers
Expand All @@ -282,7 +281,6 @@ jobs:
parameters:
parallelism:
type: integer
default: 2
executor:
class: medium
name: sb_node_16_browsers
Expand All @@ -303,7 +301,6 @@ jobs:
parameters:
parallelism:
type: integer
default: 2
executor:
class: large
name: sb_node_16_browsers
Expand Down Expand Up @@ -338,7 +335,6 @@ jobs:
parameters:
parallelism:
type: integer
default: 2
executor:
class: medium
name: sb_playwright
Expand All @@ -359,7 +355,6 @@ jobs:
parameters:
parallelism:
type: integer
default: 2
executor:
class: large
name: sb_playwright
Expand All @@ -380,7 +375,6 @@ jobs:
parameters:
parallelism:
type: integer
default: 2
executor:
class: medium
name: sb_node_16_browsers
Expand All @@ -400,7 +394,6 @@ jobs:
parameters:
parallelism:
type: integer
default: 2
executor:
class: medium
name: sb_playwright
Expand All @@ -424,7 +417,6 @@ jobs:
parameters:
parallelism:
type: integer
default: 2
executor:
class: medium
name: sb_playwright
Expand All @@ -448,7 +440,6 @@ jobs:
parameters:
parallelism:
type: integer
default: 2
executor:
class: medium
name: sb_playwright
Expand All @@ -468,54 +459,9 @@ jobs:
template: $(yarn get-template --cadence << pipeline.parameters.workflow >> --task bench)

workflows:
ci:
normal:
when:
and:
- equal: [api, << pipeline.trigger_source >>]
- equal: [ci, << pipeline.parameters.workflow >>]
jobs:
- pretty-docs
- build
- lint:
requires:
- build
- check:
requires:
- build
- unit-tests:
requires:
- build
- script-unit-tests:
requires:
- build
- chromatic-internal-storybooks:
requires:
- build
- create-sandboxes:
requires:
- build
- build-sandboxes:
requires:
- create-sandboxes
- chromatic-sandboxes:
requires:
- build-sandboxes
- e2e-production:
requires:
- build-sandboxes
- e2e-dev:
requires:
- create-sandboxes
- test-runner-production:
requires:
- build-sandboxes
# TODO: reenable once we find out the source of flakyness
# - test-runner-dev:
# requires:
# - create-sandboxes
pr:
when:
equal: [pr, << pipeline.parameters.workflow >>]
equal: [normal, << pipeline.parameters.workflow >>]
jobs:
- pretty-docs
- build
Expand Down Expand Up @@ -554,6 +500,7 @@ workflows:
requires:
- build-sandboxes
- e2e-dev:
parallelism: 2
requires:
- create-sandboxes
- test-runner-production:
Expand Down
3 changes: 1 addition & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ Closes #

#### Maintainers

- [ ] If this PR should be tested against many or all sandboxes,
make sure to add the `ci:merged` or `ci:daily` GH label to it.
- [ ] When this PR is ready for testing, make sure to add `ci:normal`, `ci:merged` or `ci:daily` GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in `code/lib/cli/src/sandbox-templates.ts`
- [ ] Make sure this PR contains **one** of the labels below.

`["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]`
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prepare-patch-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ jobs:
git config --global user.email '32066757+storybook-bot@users.noreply.github.com'
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
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
git config --global user.email '32066757+storybook-bot@users.noreply.github.com'
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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prepare-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -125,7 +125,7 @@ jobs:
git config --global user.email '32066757+storybook-bot@users.noreply.github.com'
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
Expand Down
32 changes: 31 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ jobs:
run:
working-directory: scripts
steps:
- name: Cancel if [skip ci]
if: contains(github.event.head_commit.message, '[skip ci]')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# From https://stackoverflow.com/a/75809743
run: |
gh run cancel ${{ github.run_id }}
gh run watch ${{ github.run_id }}

- name: Checkout ${{ github.ref_name }}
uses: actions/checkout@v3
with:
Expand All @@ -53,6 +62,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 "32066757+storybook-bot@users.noreply.github.com"
git add .
git commit -m "Bump version from $CURRENT_VERSION to $DEFERRED_NEXT_VERSION [skip ci]" || true
git push origin ${{ github.ref_name }}

- name: Get current version
id: version
run: yarn release:get-current-version
Expand Down Expand Up @@ -128,7 +158,7 @@ jobs:
git pull
git checkout origin/main ./CHANGELOG.md
git add ./CHANGELOG.md
git commit -m "Update CHANGELOG.md for v${{ steps.version.outputs.current-version }}"
git commit -m "Update CHANGELOG.md for v${{ steps.version.outputs.current-version }} [skip ci]"
git push origin next

- name: Sync versions/next.json from `next` to `main`
Expand Down
33 changes: 9 additions & 24 deletions .github/workflows/trigger-circle-ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- next
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
get-branch:
runs-on: ubuntu-latest
Expand All @@ -32,39 +36,20 @@ jobs:
outputs:
branch: ${{ env.branch }}

trigger-ci-tests:
runs-on: ubuntu-latest
needs: get-branch
if: github.event_name == 'pull_request_target' && github.event.pull_request.draft == true && !contains(github.event.pull_request.labels.*.name, 'ci:pr') && !contains(github.event.pull_request.labels.*.name, 'ci:merged') && !contains(github.event.pull_request.labels.*.name, 'ci:daily')
steps:
- name: Trigger draft PR tests
run: >
curl -X POST --location "https://circleci.com/api/v2/project/gh/storybookjs/storybook/pipeline" \
-H "Content-Type: application/json" \
-H "Circle-Token: $CIRCLE_CI_TOKEN" \
-d '{
"branch": "'"$BRANCH"'",
"parameters": {
"workflow": "ci"
}
}'
env:
CIRCLE_CI_TOKEN: ${{ secrets.CIRCLE_CI_TOKEN }}
BRANCH: ${{ needs.get-branch.outputs.branch }}
trigger-pr-tests:
trigger-normal-tests:
runs-on: ubuntu-latest
needs: get-branch
if: github.event_name == 'pull_request_target' && (((github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'release')) || contains(github.event.pull_request.labels.*.name, 'ci:pr')) && !contains(github.event.pull_request.labels.*.name, 'ci:merged') && !contains(github.event.pull_request.labels.*.name, 'ci:daily'))
if: github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci:normal')
steps:
- name: Trigger PR tests
- name: Trigger Normal tests
run: >
curl -X POST --location "https://circleci.com/api/v2/project/gh/storybookjs/storybook/pipeline" \
-H "Content-Type: application/json" \
-H "Circle-Token: $CIRCLE_CI_TOKEN" \
-d '{
"branch": "'"$BRANCH"'",
"parameters": {
"workflow": "pr"
"workflow": "normal"
}
}'
env:
Expand All @@ -73,7 +58,7 @@ jobs:
trigger-merged-tests:
runs-on: ubuntu-latest
needs: get-branch
if: github.event_name == 'push' || (contains(github.event.pull_request.labels.*.name, 'ci:merged') && !contains(github.event.pull_request.labels.*.name, 'ci:daily'))
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'ci:merged')
steps:
- name: Trigger merged tests
run: >
Expand Down
Loading