-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into pr/samvv/24920
- Loading branch information
Showing
3,039 changed files
with
122,151 additions
and
54,140 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
34e364a0ca1d93555d36a7367d78e8e229493de8 | ||
c0896915fb7fb9a8dd416b9aebca17abd909d1c1 | ||
a41c227037e7e7249b8b376f838f4f8bcc3e3e59 | ||
13c46e6c0b7f3dd8cf4ba42d1cfd6714f4777d54 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,10 @@ jobs: | |
name: Danger JS | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
node-version-file: ".nvmrc" | ||
- name: Danger JS | ||
uses: danger/[email protected] | ||
env: | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
name: Generate and publish sandboxes | ||
|
||
on: | ||
schedule: | ||
- cron: "2 2 */1 * *" | ||
workflow_dispatch: | ||
# To test fixes on push rather than wait for the scheduling, do the following: | ||
# 1. Uncomment the lines below and add your branch. | ||
# push: | ||
# branches: | ||
# - <your-branch-name> | ||
# 2. Change the "ref" value to <your-branch-name> in the actions/checkout step below. | ||
# 3. Comment out the whole "generate-main" job starting at line 77 | ||
# 4. 👉 DON'T FORGET TO UNDO THE STEPS BEFORE YOU MERGE YOUR CHANGES! | ||
|
||
env: | ||
YARN_ENABLE_IMMUTABLE_INSTALLS: "false" | ||
CLEANUP_SANDBOX_NODE_MODULES: "true" | ||
|
||
defaults: | ||
run: | ||
working-directory: ./code | ||
|
||
jobs: | ||
generate-next: | ||
name: Generate to next | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: next | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
|
||
- name: Setup git user | ||
run: | | ||
git config --global user.name "storybook-bot" | ||
git config --global user.email "[email protected]" | ||
- name: Install dependencies | ||
working-directory: ./scripts | ||
run: node --experimental-modules ./check-dependencies.js | ||
|
||
- name: Compile Storybook libraries | ||
run: yarn task --task compile --start-from=auto --no-link | ||
|
||
- name: Publish to local registry | ||
run: yarn local-registry --publish | ||
|
||
- name: Run local registry | ||
run: yarn local-registry --open & | ||
|
||
- name: Wait for registry | ||
run: yarn wait-on tcp:127.0.0.1:6001 | ||
|
||
- name: Generate | ||
id: generate | ||
run: yarn generate-sandboxes --local-registry | ||
|
||
- name: Publish | ||
# publish sandboxes even if the generation fails, as some sandboxes might have been generated successfully | ||
if: ${{ !cancelled() }} | ||
run: yarn publish-sandboxes --remote=https://storybook-bot:${{ secrets.PAT_STORYBOOK_BOT }}@github.com/storybookjs/sandboxes.git --push --branch=next | ||
|
||
- name: Report failure to Discord | ||
if: failure() | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_MONITORING_URL }} | ||
uses: Ilshidur/action-discord@master | ||
with: | ||
args: | | ||
The generation of some or all sandboxes on the **next** branch has failed. | ||
[See the job summary for details](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) | ||
generate-main: | ||
name: Generate to main | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
|
||
- name: Setup git user | ||
run: | | ||
git config --global user.name "storybook-bot" | ||
git config --global user.email "[email protected]" | ||
- name: Install dependencies | ||
working-directory: ./scripts | ||
run: node --experimental-modules ./check-dependencies.js | ||
|
||
- name: Compile Storybook libraries | ||
run: yarn task --task compile --start-from=auto --no-link | ||
|
||
- name: Publish to local registry | ||
run: yarn local-registry --publish | ||
|
||
- name: Run local registry | ||
run: yarn local-registry --open & | ||
|
||
- name: Wait for registry | ||
run: yarn wait-on tcp:127.0.0.1:6001 | ||
|
||
- name: Generate | ||
id: generate | ||
run: yarn generate-sandboxes --local-registry | ||
|
||
- name: Publish | ||
# publish sandboxes even if the generation fails, as some sandboxes might have been generated successfully | ||
if: ${{ !cancelled() }} | ||
run: yarn publish-sandboxes --remote=https://storybook-bot:${{ secrets.PAT_STORYBOOK_BOT }}@github.com/storybookjs/sandboxes.git --push --branch=main | ||
|
||
- name: Report failure to Discord | ||
if: failure() | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_MONITORING_URL }} | ||
uses: Ilshidur/action-discord@master | ||
with: | ||
args: | | ||
The generation of some or all sandboxes on the **main** branch has failed. | ||
[See the job summary for details](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) |
Oops, something went wrong.