Skip to content

Is it possible to install and run vitepress completely within Github action for a repo that does not use node otherwise? #4362

Answered by brc-dd
yorkshire-pudding asked this question in Q&A
Discussion options

You must be logged in to vote

You can install vitepress on CI too, but might need to lock its version in workflow if you don't want a package.json in your repo.

Some steps like this maybe:

cd docs
npm add [email protected]
npx vitepress build

You'll need to store the config file in your repo too (docs/.vitepress/config.mjs). Autocompletions inside that won't work if you're editing it locally and don't have node install.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yorkshire-pudding
Comment options

Answer selected by yorkshire-pudding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants