Skip to content

Publishing via action while using "ignore" option #241

@augustjk

Description

@augustjk

We have a monorepo of packages and want to use the "ignore" option to skip versioning and publishing a package temporarily.

The initial run of the workflow correctly runs the version, which respects the ignore option and only consumes, bumps version, and updates changelog for packages not ignored.

However, the subsequent run of the workflow still detects the leftover changeset markdown files of the ignored package, i.e. hasChangesets is true and tries to run the version again. If the detected changesets are all for ignored packages, hasChangesets should be set to false and enter the publish flow.

From what I can tell, the "ignore" option is only read and considered in @changesets/assemble-release-plan.

Instead of just reading all changesets below,

let { changesets } = await readChangesetState();

perhaps it would be better to use @changesets/get-release-plan to get releasable changesets?

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