Skip to content

fix(design-system): fix table filters exports [AR-31222] (#94) #74

fix(design-system): fix table filters exports [AR-31222] (#94)

fix(design-system): fix table filters exports [AR-31222] (#94) #74

name: Storybook
on:
workflow_dispatch:
push:
branches:
- main
permissions: {}
concurrency:
group: '${{ github.workflow }} @ ${{ github.ref }}'
cancel-in-progress: false # Ensure that previous runs aren't cancelled and leave the deployment in a broken state.
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
if: github.repository_owner == 'drivenets'
permissions:
contents: write
steps:
- name: Checkout source code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- name: Install Node.js
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version-file: .nvmrc
cache: 'pnpm'
- name: Install Dependencies
run: pnpm i
- name: Build Storybook
run: |
pnpm run --filter @drivenets/design-system build:storybook
cp -r ./packages/design-system/storybook-static /tmp/storybook-static
LAST_COMMIT=$(git rev-parse --short HEAD)
echo "LAST_COMMIT=$LAST_COMMIT" >> $GITHUB_ENV
- name: Setup Git User
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Deploy
run: |
git checkout gh-pages
rm -rf ./*
cp -r /tmp/storybook-static/* ./
git add .
git commit -m "build: deploy storybook ($LAST_COMMIT)"
git push