Skip to content

Commit

Permalink
ci: maj des chemins des storybooks
Browse files Browse the repository at this point in the history
  • Loading branch information
JLou committed Feb 18, 2025
1 parent d8d5e01 commit 21b7f34
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,40 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- name: Install dependencies
run: npm ci
- name: Build css packages
run: npm run build -w slash/css && npm run build -w client/look-and-feel/css
- name: Build packages
run: npm run build
- uses: chromaui/action@latest
name: Run Chromatic for design-system-slash-react
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_SLASH_REACT }}
zip: true
buildScriptName: "build:storybook"
workingDir: "slash/react"
buildScriptName: "build"
workingDir: "apps/slash-stories"
onlyChanged: true
- uses: chromaui/action@latest
name: Run Chromatic for design-system-slash-css
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_SLASH_CSS }}
zip: true
buildScriptName: "build:storybook"
workingDir: "slash/css"
buildScriptName: "build"
workingDir: "apps/slash-stories-css"
onlyChanged: true
- uses: chromaui/action@latest
name: Run Chromatic for design-system-lookandfeel-react
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_LOOKANDFEEL_REACT }}
zip: true
buildScriptName: "build:storybook"
workingDir: "client/look-and-feel/react"
buildScriptName: "build"
workingDir: "apps/look-and-feel-stories"
onlyChanged: true
- uses: chromaui/action@latest
name: Run Chromatic for design-system-lookandfeel-css
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_LOOKANDFEEL_CSS }}
zip: true
buildScriptName: "build:storybook"
workingDir: "client/look-and-feel/css"
buildScriptName: "build"
workingDir: "apps/look-and-feel-stories-css"
onlyChanged: true
14 changes: 9 additions & 5 deletions .github/workflows/publish-look-and-feel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
- run: npm run package:check
- run: npm ci
- run: npm run build:look-and-feel
- run: npm version "${{ steps.gitversion.outputs.fullSemVer }}" -w
- run:
npm version "${{ steps.gitversion.outputs.fullSemVer }}" -w
client/look-and-feel/css -w client/look-and-feel/react
- name: Set to react package the @axa-fr/design-system-look-and-feel-css
- name:
Set to react package the @axa-fr/design-system-look-and-feel-css
dependency version
run: |
cd client/look-and-feel/react
Expand All @@ -59,8 +61,9 @@ jobs:
- name: create artifact folder
run: mkdir -p artifact/css & mkdir -p artifact/react
- name: move storybooks to artifact folders
run: cp -R client/look-and-feel/css/storybook-static/* artifact/css & cp -R
client/look-and-feel/react/storybook-static/* artifact/react
run:
cp -R apps/look-and-feel-stories-css/storybook-static/* artifact/css &
cp -R apps/look-and-feel-stories/storybook-static/* artifact/react
- uses: actions/upload-artifact@v4
with:
name: storybooks
Expand Down Expand Up @@ -89,7 +92,8 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./react
destination_dir: look-and-feel/react/${{ needs.build.outputs.version }}
destination_dir:
look-and-feel/react/${{ needs.build.outputs.version }}
- name: Upload the latest css storybook
uses: peaceiris/[email protected]
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-slash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:
run: mkdir -p artifact/css & mkdir -p artifact/react
- name: move storybooks to artifact folders
run:
cp -R slash/css/storybook-static/* artifact/css & cp -R
slash/react/storybook-static/* artifact/react
cp -R apps/slash-stories-css/storybook-static/* artifact/css & cp -R
apps/slash-stories/storybook-static/* artifact/react
- uses: actions/upload-artifact@v4
with:
name: storybooks
Expand Down

0 comments on commit 21b7f34

Please sign in to comment.