diff --git a/.github/workflows/slidev-gh-pages.yml b/.github/workflows/slidev-gh-pages.yml index 405faf3..43c589a 100644 --- a/.github/workflows/slidev-gh-pages.yml +++ b/.github/workflows/slidev-gh-pages.yml @@ -32,7 +32,7 @@ jobs: run: | cd slidev/ echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)" >> $GITHUB_ENV - npm run build --base=/$REPO_NAME/ + npx slidev build --base /$REPO_NAME/ - name: Fix permissions run: | chmod -c -R +rX "slidev/dist/" | while read line; do diff --git a/slidev/package.json b/slidev/package.json index 661f14a..ffe232f 100644 --- a/slidev/package.json +++ b/slidev/package.json @@ -3,9 +3,6 @@ "type": "module", "version": "0.46.3", "private": true, - "scripts": { - "build": "slidev build" - }, "dependencies": { "@slidev/cli": "^0.46.3", "@slidev/theme-default": "^0.21.2",