Skip to content

Commit

Permalink
ci: fix workflows - should run build before steps
Browse files Browse the repository at this point in the history
  • Loading branch information
YossiSaadi committed Feb 13, 2024
1 parent ecc36cc commit 837a75d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
- uses: actions/checkout@v1
- name: Install dependencies
run: yarn
- name: Run Build
shell: bash
run: yarn lerna run build --since=origin/master
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
command: "lint"
- name: "Stylelint"
command: "stylelint"
- name: "Build"
command: "build"
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
Expand All @@ -43,5 +41,8 @@ jobs:
uses: ./.github/actions/setup
with:
npm_token: ${{secrets.npm_token}}
- name: Run Build
shell: bash
run: yarn lerna run build --since=origin/master
- name: Build Storybook
run: yarn lerna run build-storybook --since=origin/master
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ build-storybook.log
./build-storybook.log
chromatic.log
*/storybook-static
static_storybook
dist
*/build
coverage
Expand Down

0 comments on commit 837a75d

Please sign in to comment.