Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOENT: no such file or directory, stat '/home/runner/work/soul/soul/build' #485

Open
vaynevayne opened this issue May 19, 2023 · 3 comments

Comments

@vaynevayne
Copy link

vaynevayne commented May 19, 2023

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

@vaynevayne vaynevayne changed the title ENOENT: no such file or directory, stat '/' ENOENT: no such file or directory, stat '/home/runner/work/soul/soul/build' May 19, 2023
@jees47
Copy link

jees47 commented Jul 13, 2023

I am facing the same problem, can some one help?

@jees47
Copy link

jees47 commented Jul 13, 2023

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()], })

@vaynevayne
Copy link
Author

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants