Skip to content

ENOENT: no such file or directory, open #350

@marcospassos

Description

@marcospassos

I'm encountering an issue when using pkg-pr-new with GitHub Actions, which has been working smoothly in other projects. Specifically, running the following command:

npx pkg-pr-new publish \
  --compact --comment=update \
  ./build

results in the error below:

npm error code ENOENT
npm error syscall open
npm error path /home/runner/work/content-model-js/content-model-js/build/croct-content-model-269/merge.tgz
npm error errno -2
npm error enoent ENOENT: no such file or directory, open '/home/runner/work/content-model-js/content-model-js/build/croct-content-model-269/merge.tgz'
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2025-03-31T18_14_46_523Z-debug-0.log

Error: npm pack exited with a status of 254.

It appears npm can't locate the merge.tgz file under the specified build path (./build/croct-content-model-269). Any insights or suggestions on resolving this issue would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions