From 7658e5ed6b9adc5530143f5a364a3f8e85db9f08 Mon Sep 17 00:00:00 2001 From: Pratham Vaidya Date: Sun, 7 Apr 2024 11:39:38 +0530 Subject: [PATCH] updated: workflow configuration --- .../deploy-storybook-to-github-pages.yml | 26 +++++-------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/.github/workflows/deploy-storybook-to-github-pages.yml b/.github/workflows/deploy-storybook-to-github-pages.yml index 6e0d8c2..bd07e67 100644 --- a/.github/workflows/deploy-storybook-to-github-pages.yml +++ b/.github/workflows/deploy-storybook-to-github-pages.yml @@ -2,34 +2,22 @@ name: Build and Publish Storybook to GitHub Pages on: - # Event for the workflow to run on push: branches: - - 'main' + - "main" # change to the branch you wish to deploy from permissions: contents: read pages: write id-token: write -# List of jobs jobs: deploy: runs-on: ubuntu-latest - # Job steps steps: - # Manual Checkout - - uses: actions/checkout@v3 - - # Set up Node - - uses: actions/setup-node@v3 - with: - node-version: 'latest' - - #👇 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 - with: - install_command: yarn install # default: npm ci - build_command: yarn build-storybook # default: npm run build-storybook - path: storybook-static # default: dist/storybook - checkout: false # default: true \ No newline at end of file + - id: build-publish + 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 + path: storybook-static # default: dist/storybook \ No newline at end of file