Skip to content

Commit

Permalink
Storybook ci
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-basic committed Oct 18, 2024
1 parent a3f1f44 commit be04269
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/chat-widget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version-file: '.nvmrc'

# TODO: NPM login instead of auth token?
# - name: Authenticate with private NPM package
# run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Install dependencies
run: npm ci
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ on:
jobs:
build:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: storybook/

steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
Expand All @@ -28,19 +26,18 @@ jobs:
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version-file: '.nvmrc' # Root of the repository.

# TODO: NPM login instead of auth token?
- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Install dependencies
run: npm ci --ignore-scripts

- name: Build packages
run: npm run build

- name: Lint check
run: npm run lint

- name: Build
run: npm run build-storybook
- name: Install and Build Storybook
run: cd storybook/ && npm install && npm run build-storybook

# We upload the artifact and deploy to GitHub Pages only when this workflow is manually triggered.
- name: Upload pages artifact
Expand Down

0 comments on commit be04269

Please sign in to comment.