Feat: Added foundational components and setup for Input component #14207
This file contains hidden or 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
| name: Blade Chromatic | |
| on: push | |
| env: | |
| GITHUB_ACCESS_TOKEN: ${{ secrets.CI_BOT_TOKEN }} | |
| jobs: | |
| chromatic-deployment: | |
| name: Chromatic Deployment | |
| runs-on: ubuntu-latest # nosemgrep: non-self-hosted-runner | |
| steps: | |
| - name: Checkout Codebase | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node v20 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20.19.5 | |
| - name: Setup Cache & Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Install Dashboard Playground Dependencies | |
| working-directory: packages/blade/blade-dashboard-template | |
| run: yarn install | |
| - name: Build Dashboard Playground | |
| working-directory: packages/blade/blade-dashboard-template | |
| run: yarn run build | |
| - name: Copy Dashboard to Storybook Site | |
| working-directory: packages/blade | |
| run: | | |
| if [ -d "storybook-site/dashboard" ]; then | |
| rm -rf storybook-site/dashboard | |
| fi | |
| mkdir -p storybook-site/dashboard | |
| if [ -d "blade-dashboard-template/dist" ]; then | |
| cp -r blade-dashboard-template/dist/* storybook-site/dashboard/ | |
| echo "✓ Dashboard build output copied to storybook-site/dashboard/" | |
| else | |
| echo "✗ Dashboard dist directory not found" | |
| exit 1 | |
| fi | |
| - name: Publish to Chromatic | |
| uses: chromaui/action@v1 | |
| with: | |
| token: ${{ env.GITHUB_ACCESS_TOKEN }} | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| workingDir: packages/blade | |
| storybookBaseDir: packages/blade | |
| buildScriptName: react:storybook:build | |
| exitOnceUploaded: true | |
| onlyChanged: true | |
| untraced: '**/package.json' | |
| traceChanged: 'expanded' | |
| env: | |
| GITHUB_SHA: ${{ github.sha }} | |
| GITHUB_REF: ${{ github.ref }} |