From d10f36dbcc774a9912d8b369a74967d0663f5024 Mon Sep 17 00:00:00 2001 From: Neil MacDougall Date: Thu, 6 Feb 2025 11:40:15 +0000 Subject: [PATCH] Move env var to only be available to publish step (#13299) --- .github/workflows/storybook.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/storybook.yaml b/.github/workflows/storybook.yaml index b71bc7a58c..8c73d3364f 100644 --- a/.github/workflows/storybook.yaml +++ b/.github/workflows/storybook.yaml @@ -1,6 +1,4 @@ name: storybook -env: - STORYBOOK_TOKEN: ${{ secrets.STORYBOOK_TOKEN }} on: push: branches: @@ -24,4 +22,6 @@ jobs: yarn build-storybook - name: Publish Storybook if: ${{ github.event_name == 'push' && github.repository_owner == 'rancher'}} + env: + STORYBOOK_TOKEN: ${{ secrets.STORYBOOK_TOKEN }} run: .github/workflows/scripts/publish-storybook