From d4d2819805730fe40b66102d401a7d9dba37bf7b Mon Sep 17 00:00:00 2001 From: RasmusKjeldgaard Date: Fri, 7 Jun 2024 11:18:13 +0200 Subject: [PATCH] WIP --- .github/workflows/chromatic.yml | 41 ++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 9467d360d5..374a008824 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -20,23 +20,26 @@ jobs: - name: Build storybook run: npx nx affected -t build-storybook --base develop - - name: Check affected libraries - id: affected - run: echo "AFFECTED_LIBS=$(npx nx show projects --affected --base develop --type lib)" >> $GITHUB_ENV - - - name: Publish Designsystem to Chromatic - if: contains(env.AFFECTED_LIBS, 'designsystem') - uses: chromaui/action@latest - with: - projectToken: ${{ secrets.DESIGNSYSTEM_CHROMATIC_PROJECT_TOKEN }} - workingDir: libs/designsystem - storybookBuildDir: ${{ github.workspace }}/dist/storybook/designsystem - - - name: Publish Extensions to Chromatic - if: contains(env.AFFECTED_LIBS, 'extensions-angular') - uses: chromaui/action@latest - with: - projectToken: ${{ secrets.EXTENSIONS_CHROMATIC_PROJECT_TOKEN }} - workingDir: libs/extensions/angular - storybookBuildDir: ${{ github.workspace }}/dist/storybook/extensions/angular + - name: List branches + run: git branch -l + + # - name: Check affected libraries + # id: affected + # run: echo "AFFECTED_LIBS=$(npx nx show projects --affected --base develop --type lib)" >> $GITHUB_ENV + + # - name: Publish Designsystem to Chromatic + # if: contains(env.AFFECTED_LIBS, 'designsystem') + # uses: chromaui/action@latest + # with: + # projectToken: ${{ secrets.DESIGNSYSTEM_CHROMATIC_PROJECT_TOKEN }} + # workingDir: libs/designsystem + # storybookBuildDir: ${{ github.workspace }}/dist/storybook/designsystem + + # - name: Publish Extensions to Chromatic + # if: contains(env.AFFECTED_LIBS, 'extensions-angular') + # uses: chromaui/action@latest + # with: + # projectToken: ${{ secrets.EXTENSIONS_CHROMATIC_PROJECT_TOKEN }} + # workingDir: libs/extensions/angular + # storybookBuildDir: ${{ github.workspace }}/dist/storybook/extensions/angular