jenkey2011 / vuepress-deploy

A GitHub Action to build and deploy Vuepress sites to GitHub Pages
MIT License
144 stars 52 forks source link

error Command "build" not found. #27

Open jrothschild33 opened 2 years ago

jrothschild33 commented 2 years ago

vuepress-deploy: yarn run v1.22.5 error Command "build" not found. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

post checkout: fatal: No url found for submodule path 'docs/.vuepress/dist' in .gitmodules

详细链接:https://github.com/jrothschild33/WebNotebook/runs/6586337059?check_suite_focus=true 请问如何解决呀?

jrothschild33 commented 2 years ago

问题解决了……需要在package.json里写: "scripts": { "docs:dev": "vuepress dev docs", "docs:build": "vuepress build docs", "build": "vuepress build docs" }, 而官方文档只写了:"docs:build": "vuepress build docs", 重要的是写:"build": "vuepress build docs"