withastro / action

A GitHub Action that deploys your Astro project to GitHub Pages
Other
143 stars 31 forks source link

Error with path: no such file or directory #50

Closed arch-fan closed 3 months ago

arch-fan commented 3 months ago

I'm having this error on this repo

Running self-installer...
  [Error: ENOENT: no such file or directory, open '/home/runner/work/chinese-character-writing-practice/chinese-character-writing-practice/package.json'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'open',
    path: '/home/runner/work/chinese-character-writing-practice/chinese-character-writing-practice/package.json'
  }
  Error: Error: ENOENT: no such file or directory, open '/home/runner/work/chinese-character-writing-practice/chinese-character-writing-practice/package.json'

Path is assigned at workflow, but isn't working

arch-fan commented 3 months ago

Well, it end up working. I had to create a package.json on the root folder and specify pnpm on package-manager