Skip to content

Commit

Permalink
Set up affected command for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusKjeldgaard committed Jun 10, 2024
1 parent c85a071 commit fddb999
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ jobs:

- name: Kirby setup
uses: ./.github/actions/kirby-setup

- uses: nrwl/nx-set-shas@v3
- run: git branch --track develop origin/develop

- name: Build storybook
run: npx nx affected -t build-storybook --base develop
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
run: echo "AFFECTED_LIBS=$(npx nx show projects --affected --type=lib --base=develop)" >> $GITHUB_ENV

- name: Publish Designsystem to Chromatic
if: contains(env.AFFECTED_LIBS, 'designsystem')
Expand Down

0 comments on commit fddb999

Please sign in to comment.