Skip to content

Merge pull request #18 from internxt/feat/PB-3269-Add-dialog #4

Merge pull request #18 from internxt/feat/PB-3269-Add-dialog

Merge pull request #18 from internxt/feat/PB-3269-Add-dialog #4

name: Deploy Storybook
on:
push:
branches:
- master
paths:
- 'src/stories/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18.x'
- name: Configure npm for GitHub Packages
run: |
echo "registry=https://registry.yarnpkg.com/" > .npmrc
echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PERSONAL_ACCESS_TOKEN }}" >> .npmrc
echo "always-auth=true" >> .npmrc
- name: Install dependencies
run: yarn install
- name: Build Storybook
run: yarn build
- name: Deploy Storybook to GitHub Pages
run: npx gh-pages -d storybook-static -b storybook-ui