Move env var to only be available to publish step (#13299)

This commit is contained in:
Neil MacDougall 2025-02-06 11:40:15 +00:00 committed by GitHub
parent f4dbc15885
commit d10f36dbcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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