Skip to content

Commit

Permalink
Update GH Pages setup example to include the latest actions version
Browse files Browse the repository at this point in the history
This adds the latest version of the deploy action, as the older version was failing. It also adds an optional task to install Yarn Modern, if a repo requires it.
  • Loading branch information
esimkowitz committed May 7, 2024
1 parent d06d40d commit 0e04173
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/snippets/common/ghp-github-action.yml.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ jobs:
# Set up Node
- uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'

# If using Yarn Modern, you also need to add the following action to install your configured Yarn version:
# - name: Install Yarn
# run: corepack enable && yarn install

#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
- uses: bitovi/github-actions-storybook-to-github-pages@v1.0.1
- uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
with:
install_command: yarn install # default: npm ci
build_command: yarn build-storybook # default: npm run build-storybook
Expand Down

0 comments on commit 0e04173

Please sign in to comment.