Skip to content

Commit

Permalink
fix: GH action 상에서 env 주입
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-yn committed Dec 16, 2023
1 parent 1eb6b8b commit 3f007f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/storybook-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_DEPLOY_TOKEN_2 }}
- name: Build Storybook Artifacts
env:
NEXT_PUBLIC_STORAGE_URL: ${{ secrets.NEXT_PUBLIC_STORAGE_URL }}
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }}
run: |
pnpm install
NEXT_PUBLIC_STORAGE=${{ secrets.NEXT_PUBLIC_STORAGE }} pnpm build-storybook
Expand Down
3 changes: 0 additions & 3 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ const config: StorybookConfig = {
],
env: {
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL as string,
NEXT_PUBLIC_LOCALHOST: process.env.NEXT_PUBLIC_LOCALHOST as string,
NEXT_PUBLIC_BASE_PATH: process.env.NEXT_PUBLIC_BASE_PATH as string,
NEXT_PUBLIC_STORAGE_URL: process.env.NEXT_PUBLIC_STORAGE_URL as string,
NEXT_PUBIC_WEBSOCKET_PORT: process.env.NEXT_PUBIC_WEBSOCKET_PORT as string,
},
framework: {
name: '@storybook/nextjs',
Expand Down

0 comments on commit 3f007f6

Please sign in to comment.