From 0e0417368c73a83603f4cda1e7fdd2b9d3d1c6bf Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Tue, 7 May 2024 11:38:44 -0700 Subject: [PATCH] Update GH Pages setup example to include the latest actions version 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. --- docs/snippets/common/ghp-github-action.yml.mdx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/snippets/common/ghp-github-action.yml.mdx b/docs/snippets/common/ghp-github-action.yml.mdx index d4c9b83a6bb5..b735f2f3022f 100644 --- a/docs/snippets/common/ghp-github-action.yml.mdx +++ b/docs/snippets/common/ghp-github-action.yml.mdx @@ -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