changesets / action

682 stars 242 forks source link

NPM Lifecycle Scripts Fail Without Reason #383

Closed johnameyer closed 2 weeks ago

johnameyer commented 2 months ago

Recently, when trying to publish my package, the action successfully published the first "core" package and then failed to publish the other packages. It seems to complain about the build lifecycle action despite build being called previously, directly and succeeding. I was ultimately able to run the publish command directly in a Github workspace with no issues.

The main issue is that the error is not included in the output so it is hard to say what is going awry.

Workflow definition: https://github.com/johnameyer/cards-ts/blob/c660cfb583828e90ed31126cd14899b9e183db0a/.github/workflows/release.yml

Publish execution: https://github.com/johnameyer/cards-ts/actions/runs/10136934280/job/28026432311

🦋  error npm ERR! Lifecycle script `build` failed with error: 
🦋  error npm ERR! Error: command failed 
🦋  error npm ERR!   in workspace: @cards-ts/can-i-have-that@0.7.0 
🦋  error npm ERR!   at location: /home/runner/work/cards-ts/cards-ts/packages/can-i-have-that 
🦋  error