Skip to content

Commit

Permalink
Test action path
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusKjeldgaard committed Jun 6, 2024
1 parent d1e8be2 commit 7fbf5f3
Showing 1 changed file with 33 additions and 24 deletions.
57 changes: 33 additions & 24 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,37 @@ jobs:
if: ${{ github.event.label.name == 'chromatic' || contains(github.event.pull_request.labels.*.name, 'chromatic')}}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

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

- name: Build storybook
run: npx nx run-many -t build-storybook

- name: Publish Designsystem to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.DESIGNSYSTEM_CHROMATIC_PROJECT_TOKEN }}
workingDir: libs/designsystem
storybookBuildDir: dist/storybook/designsystem

- name: Publish Extensions to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.EXTENSIONS_CHROMATIC_PROJECT_TOKEN }}
workingDir: libs/extensions/angular
storybookBuildDir: dist/storybook/extensions/angular
- name: Action path
run: ls ${{ github.action_path }}

- name: Alternativt action path
run: ls ${GITHUB_ACTION_PATH}

- name: ls
run: ls -al

# - name: Checkout code
# uses: actions/checkout@v4
# with:
# fetch-depth: 0

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

# - name: Build storybook
# run: npx nx run-many -t build-storybook

# - name: Publish Designsystem to Chromatic
# uses: chromaui/action@latest
# with:
# projectToken: ${{ secrets.DESIGNSYSTEM_CHROMATIC_PROJECT_TOKEN }}
# workingDir: libs/designsystem
# storybookBuildDir: dist/storybook/designsystem

# - name: Publish Extensions to Chromatic
# uses: chromaui/action@latest
# with:
# projectToken: ${{ secrets.EXTENSIONS_CHROMATIC_PROJECT_TOKEN }}
# workingDir: libs/extensions/angular
# storybookBuildDir: dist/storybook/extensions/angular

0 comments on commit 7fbf5f3

Please sign in to comment.