fix: Update workflow to deploy Storybook application to Github pages … #395
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Storybook Publish | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
env: | |
NODE_VERSION: 20 | |
NODE_CACHE: "yarn" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: ${{ env.NODE_CACHE }} | |
- name: Deploy Storybook | |
uses: bitovi/[email protected] | |
with: | |
install_command: yarn install --immutable | |
build_command: yarn build:storybook | |
path: storybook-static | |
checkout: false |