Skip to content

Commit

Permalink
correctest composite action syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Feb 9, 2024
1 parent a385574 commit 871e1b1
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 "[email protected]"
- 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
Expand Down

0 comments on commit 871e1b1

Please sign in to comment.