Skip to content

Commit

Permalink
ci: fix "Deploy storybook to netlify" step
Browse files Browse the repository at this point in the history
Reason: `npx netlify-cli deploy` started to fail on CI with "ntl: command not found".

Switching to `pnpm dlx` solved the issue.
  • Loading branch information
Leksat committed Jan 30, 2025
1 parent 7dfe9aa commit ec0cb8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ jobs:

- name: Deploy storybook to netlify
run:
pnpm run --filter=@custom/ui build && npx netlify-cli deploy --prod
--filter @custom/ui --dir=packages/ui/storybook-static
pnpm run --filter=@custom/ui build && pnpm --package=netlify-cli dlx
netlify deploy --prod --filter @custom/ui
--dir=packages/ui/storybook-static
env:
VITEST_CLOUDINARY_CLOUDNAME: local
NETLIFY_SITE_ID: ${{ vars.NETLIFY_STORYBOOK_ID }}
Expand Down

0 comments on commit ec0cb8c

Please sign in to comment.