Skip to content

Ignore v in --repo-version #1483

Closed
Closed

Description

@HsuTing

I want to publish with circleci and git tag. Normally I use git tag like v1.0.0, and publish in circleci like yarn lerna publish --repo-version ${CIRCLE_TAG}. As a result, yarn lerna publish will use v1.0.0 to publish packages, but --new-version of yarn publish can not be a version with v. Maybe v should be ignored with --repo-version?

Expected Behavior

yarn publish --repo-version v1.0.0
// publish packages with version `1.0.0`.

Current Behavior

yarn publish --repo-version v1.0.0
// publish packages with version `v1.0.0`.

Possible Solution

Add repoVersion.replace(/^v/, '') in here.

Steps to Reproduce (for bugs)

yarn lerna publish --repo-version v1.0.0
lerna.json

<!-- Please paste your `lerna.json` here -->
{
  version: 1.0.0,
  commands: { 
    publish: { 
      ignore: [ 
        *.md,
        __tests__/**
      ]
    }
  },
  lerna: 2.11.0,
  npmClient: yarn,
  npmClientArgs: [ 
    --no-lockfile
  ],
  packages: [ 
    packages/*
  ]
}

lerna-debug.log

<!-- If you have a `lerna-debug.log` available, please paste it here -->
<!-- Otherwise, feel free to delete this <details> block -->

Context

I hope this can publish in circleci with my git tag, and I want to still have v in my git tag. Like standard-version, this will ignore v when I use --release-as. Maybe lerna can ignore, too.

Your Environment

Executable Version
lerna --version 2.11.0
npm --version 6.1.0
yarn --version 1.7.0
node --version 10.2.1
OS Version
macOS High Sierra 10.13.5

Activity

  1. evocateur commented on Jul 13, 2018

    @evocateur
    Member

    This has been fixed in master, but is unlikely to make it into the 2.x release line as the codebase has changed dramatically.

  2. HsuTing commented on Jul 14, 2018

    @HsuTing
    Author

    @evocateur OK! Thank you 😁

  3. added a commit that references this issue on Jul 27, 2018
    8b97394
  4. added a commit that references this issue on Dec 18, 2018
    79dd10f
  5. lock commented on Dec 27, 2018

    @lock

    This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  6. locked as resolved and limited conversation to collaborators on Dec 27, 2018
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