Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusKjeldgaard committed Jun 7, 2024
1 parent c85a071 commit d4d2819
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d4d2819

Please sign in to comment.