Skip to content

Publish

Publish #2

Workflow file for this run

name: Publish
on:
workflow_run:
workflows: ['Main']
types:
- completed
branches:
- main
- develop
permissions:
contents: read
pages: write
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Deploy Storybook
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.2
with:
install_command: npm ci
build_command: npm build-storybook
path: storybook-static
env:
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release