Skip to content

ci: add snapshot release #16

ci: add snapshot release

ci: add snapshot release #16

name: Deploy storybook
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Install & Build
run: |
pnpm install
pnpm build
pnpm build-storybook
- name: Deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
pnpm run publish-storybook -u "github-actions-bot <support+actions@github.com>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}