Skip to content

Release 0.4.4

Release 0.4.4 #6

Workflow file for this run

name: Publish
on:
workflow_dispatch:
release:
types: [created]
permissions:
contents: write # Needed to push to gh-pages
pages: write
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: latest
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build Storybook
run: pnpm storybook:build
- name: Deploy Storybook to GitHub Pages
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
with:
install_command: pnpm install # default: npm ci
build_command: pnpm storybook:build # default: npm run build-storybook
path: storybook-static # default: dist/storybook
checkout: false # default: true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build and publish to npm
if: startsWith(github.ref, 'refs/tags/v')
run: |
pnpm build
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}