Skip to content

Creating tag fails during publish #567

@Niznikr

Description

@Niznikr

Affected Packages

cli using latest version 2.16.0

Problem

Similar to #196 my publish goes through but changeset publish fails when trying to create the tag for the release.

🦋  error SyntaxError: Unexpected token a in JSON at position 2
🦋  error     at JSON.parse (<anonymous>)
🦋  error     at jsonParse (/Users/rniznik/Documents/pharos/node_modules/@changesets/cli/dist/cli.cjs.dev.js:584:17)
🦋  error     at internalPublish (/Users/rniznik/Documents/pharos/node_modules/@changesets/cli/dist/cli.cjs.dev.js:738:14)
error Command failed with exit code 1.

The line failing being:

let json = jsonParse(stdout.toString().replace(/[^{]*/, ""));

Not sure what in the stdout of our build script could be resulting in the issue.

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