Revert temporary changes to sandbox generation

This commit is contained in:
Michael Shilman 2024-11-04 22:19:13 +08:00
parent 803195020f
commit d94c342f23

View File

@ -6,9 +6,9 @@ on:
workflow_dispatch: workflow_dispatch:
# To test fixes on push rather than wait for the scheduling, do the following: # To test fixes on push rather than wait for the scheduling, do the following:
# 1. Uncomment the lines below and add your branch. # 1. Uncomment the lines below and add your branch.
push: # push:
branches: # branches:
- shilman/react-native-web-vite # - <your-branch-name>
# 2. Change the "ref" value to <your-branch-name> in the actions/checkout step below. # 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 # 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! # 4. 👉 DON'T FORGET TO UNDO THE STEPS BEFORE YOU MERGE YOUR CHANGES!
@ -28,7 +28,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
ref: shilman/react-native-web-vite ref: next
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
@ -74,54 +74,54 @@ jobs:
The generation of some or all sandboxes on the **next** branch has failed. 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 }}) [See the job summary for details](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
# generate-main: generate-main:
# name: Generate to main name: Generate to main
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - uses: actions/checkout@v4 - uses: actions/checkout@v4
# with: with:
# ref: main ref: main
# - uses: actions/setup-node@v4 - uses: actions/setup-node@v4
# with: with:
# node-version-file: ".nvmrc" node-version-file: ".nvmrc"
# - name: Setup git user - name: Setup git user
# run: | run: |
# git config --global user.name "storybook-bot" git config --global user.name "storybook-bot"
# git config --global user.email "32066757+storybook-bot@users.noreply.github.com" git config --global user.email "32066757+storybook-bot@users.noreply.github.com"
# - name: Install dependencies - name: Install dependencies
# working-directory: ./scripts working-directory: ./scripts
# run: node --experimental-modules ./check-dependencies.js run: node --experimental-modules ./check-dependencies.js
# - name: Compile Storybook libraries - name: Compile Storybook libraries
# run: yarn task --task compile --start-from=auto --no-link run: yarn task --task compile --start-from=auto --no-link
# - name: Publish to local registry - name: Publish to local registry
# run: yarn local-registry --publish run: yarn local-registry --publish
# - name: Run local registry - name: Run local registry
# run: yarn local-registry --open & run: yarn local-registry --open &
# - name: Wait for registry - name: Wait for registry
# run: yarn wait-on tcp:127.0.0.1:6001 run: yarn wait-on tcp:127.0.0.1:6001
# - name: Generate - name: Generate
# id: generate id: generate
# run: yarn generate-sandboxes --local-registry run: yarn generate-sandboxes --local-registry
# - name: Publish - name: Publish
# # publish sandboxes even if the generation fails, as some sandboxes might have been generated successfully # publish sandboxes even if the generation fails, as some sandboxes might have been generated successfully
# if: ${{ !cancelled() }} if: ${{ !cancelled() }}
# run: yarn publish-sandboxes --remote=https://storybook-bot:${{ secrets.PAT_STORYBOOK_BOT }}@github.com/storybookjs/sandboxes.git --push --branch=main 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 - name: Report failure to Discord
# if: failure() if: failure()
# env: env:
# DISCORD_WEBHOOK: ${{ secrets.DISCORD_MONITORING_URL }} DISCORD_WEBHOOK: ${{ secrets.DISCORD_MONITORING_URL }}
# uses: Ilshidur/action-discord@master uses: Ilshidur/action-discord@master
# with: with:
# args: | args: |
# The generation of some or all sandboxes on the **main** branch has failed. 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 }}) [See the job summary for details](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})