Skip to content

Commit 81e1e51

Browse files
authored
Add validation for STORYBOOK_AUTH_CLIENT_ID in deploy workflow (#195)
1 parent 42d7917 commit 81e1e51

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/deploy-storybook.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v4
1919

20+
- name: Validate Storybook auth client id
21+
env:
22+
STORYBOOK_AUTH_CLIENT_ID: ${{ secrets.STORYBOOK_AUTH_CLIENT_ID }}
23+
run: |
24+
if [ -z "$STORYBOOK_AUTH_CLIENT_ID" ]; then
25+
echo "STORYBOOK_AUTH_CLIENT_ID is not set. Add it as a GitHub Actions secret."
26+
exit 1
27+
fi
28+
2029
- name: Use Node.js 20
2130
uses: actions/setup-node@v4
2231
with:
@@ -30,6 +39,8 @@ jobs:
3039

3140
- name: Build Storybook static
3241
working-directory: packages/apps/storybook
42+
env:
43+
STORYBOOK_AUTH_CLIENT_ID: ${{ secrets.STORYBOOK_AUTH_CLIENT_ID }}
3344
run: |
3445
set -e
3546
node ../../../common/scripts/install-run-rushx.js build-storybook

0 commit comments

Comments
 (0)