Skip to content

Commit

Permalink
Merge pull request Ferlab-Ste-Justine#370 from Ferlab-Ste-Justine/fea…
Browse files Browse the repository at this point in the history
…t/FLUI-104-split-build-publish-storybook

ci(storybook): FLUI-104 split storybook build and deploy jobs
  • Loading branch information
aperron-ferlab authored Jan 19, 2024
2 parents 3a870cd + 540b8c6 commit 1240bca
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
name: Deploy Storybook
name: Build and Deploy Storybook

on:
pull_request:
branches:
- '*'
push:
branches:
- master

jobs:
build-and-deploy:
build_and_deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install and Build 🔧

- name: Install dependencies and build 🔧
run: | # Install npm packages and build the Storybook files
cd packages/ui
npm install
npm run build
cd ../../storybook
npm install
npm run build-storybook
- name: Deploy 🚀
if: github.event_name == 'push' && github.ref == 'refs/heads/master' # This will prevent the Deploy from being triggered in PRs
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/uilinter.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Lint

on:
pull_request:
branches:
- master
pull_request:
branches:
- master

jobs:
build_components:
Expand Down

0 comments on commit 1240bca

Please sign in to comment.