Skip to content

Commit 4d1babb

Browse files
committed
Update pages.yml
1 parent e814f72 commit 4d1babb

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/pages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Deploy static content to Pages
44
on:
55
# Runs on pushes targeting the default branch
66
push:
7-
branches: ["master"]
7+
branches: [ $default-branch ]
88

99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
@@ -34,14 +34,14 @@ jobs:
3434
node-version: '22.x'
3535
cache: 'npm'
3636
- run: npm ci
37-
- run: npm build
37+
- run: npm run build
3838
- name: Setup Pages
3939
uses: actions/configure-pages@v5
4040
- name: Upload artifact
4141
uses: actions/upload-pages-artifact@v3
4242
with:
4343
# Upload entire repository
44-
path: '.'
44+
path: 'dist'
4545
- name: Deploy to GitHub Pages
4646
id: deployment
4747
uses: actions/deploy-pages@v4

src/components/tree/NodePanel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export function NodePanel({ node, showLink }: NodePanelProps) {
2626
<h5>
2727
<FontAwesomeIcon color={actionColor} icon={icon} />
2828
Name: {node.path}
29+
{/* @ts-ignore */}
2930
{showLink && <NodeLink node={node} />}
3031
</h5>
3132
<p>Size: {filesize(node.size)}</p>

0 commit comments

Comments
 (0)