ENOENT: no such file or directory, stat '/home/runner/work/soul/soul/build'
Opened this issue ยท 4 comments
i use it in github actions but get an error,
Could you take a look at it for me?
https://github.com/vaynevayne/soul/actions/runs/5025834239/jobs/9013319867
I am facing the same problem, can some one help?
i use it in github actions but get an error, Could you take a look at it for me?
https://github.com/vaynevayne/soul/actions/runs/5025834239/jobs/9013319867
Found the solution, if you are using vite you have to add dist folder instead of build folder. So in package.json it looks like this
"deploy": "gh-pages -d dist",
also change vite.config.ts to this
export default defineConfig({ base: "/{your-repo-name}", plugins: [react()], })
For my project, I did not use vite to build the project, what should I do?
"dev": "storybook dev -p 6006",
"deploy": "pnpm build && touch ./storybook-static/.nojekyll && gh-pages -d ./storybook-static -t true"
Thanks @jees47
It worked for me ๐