Fix: telemetry instrumentation key not picked up in storybook build task (#185)
This commit is contained in:
Родитель
aad377cccc
Коммит
3488020641
|
@ -71,11 +71,13 @@ jobs:
|
|||
# Deploy Storybook - only perform this step on main branch CI
|
||||
- name: Deploy Storybook
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: npm run deploy-storybook -- --ci
|
||||
# storybook requires the env vars to be in a .env file for access in the manager.ts
|
||||
run: |
|
||||
echo TELEMETRY_INSTRUMENTATION_KEY=${{ secrets.TELEMETRY_INSTRUMENTATION_KEY }} > .env
|
||||
npm run deploy-storybook -- --ci
|
||||
working-directory: ./packages/storybook
|
||||
env:
|
||||
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
|
||||
TELEMETRY_INSTRUMENTATION_KEY: ${{ secrets.TELEMETRY_INSTRUMENTATION_KEY }}
|
||||
|
||||
# Create a GitHub issue if the CI failed when running on the `main` branch
|
||||
- name: Create issue if main branch CI failed
|
||||
|
|
Загрузка…
Ссылка в новой задаче