Skip to content

Commit

Permalink
fix static deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWangJustToDo committed Jan 15, 2024
1 parent 613f68e commit ec4b2ba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: install pnpm
uses: pnpm/action-setup@v2
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache: 'pnpm'
- name: Install dependencies
run: npm install
run: pnpm install
- name: Build
run: npm run build
run: pnpm run build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"packageManager": "[email protected]",
"dependencies": {
"@my-react/react": "0.3.0",
"@my-react/react-dom": "0.3.0",
Expand Down
3 changes: 3 additions & 0 deletions src/components/DiffView.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/ban-ts-comment */
import {
ReactNode,
Expand Down Expand Up @@ -61,8 +62,10 @@ export const DiffView = ({ data }: { data: DiffFileData }) => {
)
);

// @ts-ignore
const [oldList, setOldList] = useState<Record<number, ReactNode[]>>({});

// @ts-ignore
const [newList, setNewList] = useState<Record<number, ReactNode[]>>({});

const diffFile = useMemo(() => parseDiffFile(data), [data]);
Expand Down

0 comments on commit ec4b2ba

Please sign in to comment.