From 40ebefa1108a62603572e2feca3cfc7eef2c0a80 Mon Sep 17 00:00:00 2001 From: Rowell Heria Date: Thu, 19 Sep 2024 12:34:46 +0100 Subject: [PATCH] ci: update publish script --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d8f78dd..c5d0f4c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - feature/next jobs: publish: @@ -50,7 +51,7 @@ jobs: publish_storybook: runs-on: ubuntu-latest needs: publish - if: ${{ needs.publish.outputs.published == 'true' }} + if: ${{ needs.publish.outputs.published == 'true' && github.ref == 'refs/heads/main' }} permissions: contents: write steps: