Skip to content

Publishing of Yarn 2 workspaces won't remove version prefix #95

Closed as duplicate

Description

@mheob

In our monorepo we use the native Yarn 2 workspace prefixes. For example, it looks like this:

{
  "dependencies": {
    "@easyfeedback/theme": "workspace:^1.1.1"
  },
}

If we now use yarn pack or yarn npm publish, the prefix is removed, as explained in the link above.
Unfortunately, this does not work when using the changesets/action.

My wokflow looks like this:

# ...

- name: Create Release Pull Request or Publish to GitHub packages
  uses: changesets/action@master
  with:
    commit: "Update version and deploy packages"
    title: "Update version and deploy packages"
    publish: yarn changeset publish
    version: yarn changeset version
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

# ...

Activity

  1. bluwy commented on May 15, 2026

    @bluwy
    Member

    Let's track in #246 as there's more activity there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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