From c55bdbba56d98b03ecd6353a126598b5c9c47abf Mon Sep 17 00:00:00 2001 From: Florian Stancioiu Date: Thu, 6 Jun 2024 10:40:03 +0300 Subject: [PATCH] feat: add `preview` github workflow update the `storybook` github workflow --- .github/workflows/preview.yml | 18 ++++++++++++++++++ .github/workflows/storybook.yml | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 .github/workflows/preview.yml diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 0000000..72ad96a --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,18 @@ +name: Deploy PR previews +concurrency: preview-${{ github.ref }} +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed +permissions: + contents: write + pull-requests: write +jobs: + storybook: + uses: Neovici/cfg/.github/workflows/preview.yml@master + secrets: inherit + with: + skip_dist: true diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 9366c8d..369f31f 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -8,3 +8,5 @@ jobs: storybook: uses: Neovici/cfg/.github/workflows/story.yml@master secrets: inherit + with: + skip_dist: true