Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLorantfy committed Jun 9, 2024
1 parent aa1c649 commit b784737
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ jobs:
- run: pnpm install
- run: pnpm lint
- run: pnpm format:check
- run: cd packages/zod-error-viewer
- run: pnpm test
working-directory: packages/zod-error-viewer
- run: pnpm build
working-directory: packages/zod-error-viewer
- name: Publish package
working-directory: packages/zod-error-viewer
run: |
if [ $GITHUB_REF != "refs/heads/main" ]; then
echo "Branch is not main, skipping publish step"
Expand All @@ -46,9 +48,10 @@ jobs:
pnpm publish
- name: Build documentation
run: pnpm build-storybook
working-directory: packages/zod-error-viewer
- name: Upload documentation artifact
uses: actions/upload-pages-artifact@v3
with:
path: storybook-static
path: packages/zod-error-viewer/storybook-static
- name: Publish documentation
uses: actions/deploy-pages@v4
1 change: 0 additions & 1 deletion packages/zod-error-viewer/src/ZodErrorViewer.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "./playground.css";
import type { Meta, StoryObj } from "@storybook/react";
import { ZodErrorViewer } from "./ZodErrorViewer";
import { z } from "zod";
Expand Down

0 comments on commit b784737

Please sign in to comment.