prisma-labs / dripip

Opinionated CLI for continuous delivery of npm packages
100 stars 2 forks source link

dripip preview --json causes to JSONError #115

Closed sukazavr closed 3 years ago

sukazavr commented 3 years ago

Hello!

Instructions

I try to run yarn -s dripip preview --json > result.json

Get laconic error:

 »   Error: ...todo...
 »   Code: JSONError

Does it mean that this feature isn't ready?

To reproduce you can use my lib repo https://github.com/sukazavr/rxjs-signal Here is the link to failed run: https://github.com/sukazavr/rxjs-signal/runs/2313260809?check_suite_focus=true

P.S.: I tried on my windows machine yarn -s dripip preview --json > result.json got same results.

Mb this will help yarn -s dripip preview -d:

{
  report: {
    stops: [],
    errors: [ [Object] ],
    passes: [ [Object], [Object], [Object], [Object] ]
  },
  release: {
    bumpType: 'minor',
    version: {
      version: '0.1.0-next.1',
      vprefix: false,
      major: 0,
      minor: 1,
      patch: 0,
      preRelease: [Object]
    }
  },
  commits: [
    { raw: 'feat: add cs (create signal)', parsed: [Object] },
    { raw: 'chore: use template', parsed: [Object] },
    { raw: 'Initial commit', parsed: null }
  ],
  changelog: '#### Features\n' +
    '\n' +
    '- db6643a add cs (create signal)\n' +
    '\n' +
    '#### Chores\n' +
    '\n' +
    '- dfa40ae use template\n' +
    '\n' +
    '#### Unspecified Changes\n' +
    '\n' +
    '- 9e49dd5 Initial commit\n'
}
sukazavr commented 3 years ago

Sorry, my bad, I didn't set NPM_TOKEN. Works fine with it. Thanks!