fix: Settings menu on widgets can be accessed by keyboard (#1222) #600
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: Deploy Storybook to Github Pages | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- '**.md**' | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
deploy-storybook: | |
runs-on: ubuntu-latest | |
name: Deploy Storybook | |
environment: | |
name: github-pages | |
url: ${{ steps.build-publish.outputs.page_url }} | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Read Node.js version from package.json | |
run: echo "nodeVersion=$(node -p "require('./package.json').engines.node")" >> $GITHUB_OUTPUT | |
id: engines | |
- name: Set up node | |
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 | |
with: | |
node-version: ${{ steps.engines.outputs.nodeVersion }} | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn-${{ steps.yarn-cache-dir-path.outputs.dir }} | |
# The yarn cache is not node_modules | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Generate GraphQL types | |
run: yarn generate | |
- name: Build Storybook | |
run: yarn storybook:build | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@a1ea191d508feb8485aceba848389d49f80ca2dc # v4 | |
with: | |
clean: true | |
clean-exclude: | | |
CNAME | |
folder: storybook-static # The folder the action should deploy. |