diff --git a/.github/actions/generate-sandboxes-composite-action.yml b/.github/actions/generate-sandboxes-composite-action/action.yml similarity index 88% rename from .github/actions/generate-sandboxes-composite-action.yml rename to .github/actions/generate-sandboxes-composite-action/action.yml index d47166c73ec4..e2d84a2c283d 100644 --- a/.github/actions/generate-sandboxes-composite-action.yml +++ b/.github/actions/generate-sandboxes-composite-action/action.yml @@ -6,11 +6,6 @@ inputs: description: The destination branch to generate sandboxes to in the storybookjs/sandboxes repository required: true -defaults: - run: - shell: bash - working-directory: ./code - runs: using: "composite" steps: @@ -19,34 +14,42 @@ runs: node-version-file: ".nvmrc" - name: Setup git user + shell: bash run: | git config --global user.name "storybook-bot" git config --global user.email "32066757+storybook-bot@users.noreply.github.com" - name: Install dependencies + shell: bash working-directory: ./scripts env: - YARN_ENABLE_IMMUTABLE_INSTALLS: false + YARN_ENABLE_IMMUTABLE_INSTALLS: "false" run: node --experimental-modules ./check-dependencies.js - name: Compile Storybook libraries + shell: bash run: yarn task --task compile --start-from=auto --no-link - name: Publish to local registry + shell: bash run: yarn local-registry --publish - name: Run local registry + shell: bash run: yarn local-registry --open & - name: Wait for registry + shell: bash run: yarn wait-on tcp:127.0.0.1:6001 - name: Generate + shell: bash env: - CLEANUP_SANDBOX_NODE_MODULES: true + CLEANUP_SANDBOX_NODE_MODULES: "true" run: yarn generate-sandboxes --local-registry - name: Publish + shell: bash run: yarn publish-sandboxes --remote=https://storybook-bot:${{ secrets.PAT_STORYBOOK_BOT}}@github.com/storybookjs/sandboxes.git --push --branch=${{ inputs.destination-branch }} - name: The job has failed