chore: version packages (#1802) #5670
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: Chromatic | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| jobs: | |
| chromatic-deployment: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| outputs: | |
| storybookUrl: ${{ steps.chromatic.outputs.storybookUrl }} | |
| steps: | |
| - name: Get Token | |
| uses: launchdarkly/gh-actions/actions/[email protected] | |
| with: | |
| aws_assume_role: ${{ vars.AWS_ROLE_ARN }} | |
| ssm_parameter_pairs: '/production/common/launchpad-ui/chromatic-token = CHROMATIC_TOKEN' | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install Dependencies | |
| run: pnpm install | |
| - name: Publish to Chromatic | |
| id: chromatic | |
| uses: chromaui/action@v13 | |
| with: | |
| projectToken: ${{ env.CHROMATIC_TOKEN }} | |
| buildScriptName: 'storybook:build' | |
| exitOnceUploaded: true | |
| onlyChanged: true | |
| externals: packages/(icons/src/img|tokens/tokens)/** |