0

I'm trying to put together a GitHub PR for the react-querybuilder library, but my CodeSandbox CI job is failing with the following message:

{ [Error: ENOENT: no such file or directory, copyfile '/tmp/7f429ec0/react-querybuilder-v4.0.0-beta2.tgz' -> '/tmp/output/react-querybuilder/_pkg.tgz']
  errno: -2,
  code: 'ENOENT',
  syscall: 'copyfile',
  path: '/tmp/7f429ec0/react-querybuilder-v4.0.0-beta2.tgz',
  dest: '/tmp/output/react-querybuilder/_pkg.tgz' }

The GitHub Actions run fine, and I can run the npm run build command locally without issues, so I'm not sure if I have something configured wrong or if there is a problem with CodeSandbox CI.

Jake Boone
  • 1,090
  • 1
  • 11
  • 19

1 Answers1

0

Finally figured it out. When I ran the np command to publish v4.0.0-beta.2, I included the "v" in the version number parameter, i.e.:

npm run publish:npm -- v4.0.0-beta.2 --tag=beta

This should have been run like this:

npm run publish:npm -- 4.0.0-beta.2 --tag=beta

The errant "v" caused the version number in package.json to have a "v" prefix, which apparently confused CodeSandbox CI.

After removing the "v" prefix in package.json, the CI build is passing.

Jake Boone
  • 1,090
  • 1
  • 11
  • 19