Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`postpublish` in root does not run after publish successfully on CI #2210

Closed
JounQin opened this issue Aug 4, 2019 · 1 comment
Closed

`postpublish` in root does not run after publish successfully on CI #2210

JounQin opened this issue Aug 4, 2019 · 1 comment

Comments

@JounQin
Copy link

@JounQin JounQin commented Aug 4, 2019

Expected Behavior

Run postpublish lifecycle script

Current Behavior

Does not run

https://travis-ci.com/rx-ts/eslint-mdx/builds/121870771#L455-L457

Possible Solution

Steps to Reproduce (for bugs)

  1. prepublishOnly: lerna version "$(jq -r '.version' package.json)" --amend --yes
  2. lerna publish from-package --amend --yes
  3. postpublish: git push --follow-tags origin $TRAVIS_BRANCH
lerna.json

<!-- Please paste your `lerna.json` here -->
{
  "$schema": "http://json.schemastore.org/lerna",
  "version": "0.9.3",
  "npmClient": "yarn",
  "useWorkspaces": true,
  "command": {
    "publish": {
      "graphType": "all"
    },
    "version": {
      "allowBranch": "master"
    }
  }
}

lerna-debug.log

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

Context

Your Environment

Executable Version
lerna --version 3.16.4
npm --version 6.10.2
yarn --version 1.17.3
node --version v12.7.0
OS Version
linux/amd64
18.06.0-ce
@evocateur

This comment has been minimized.

Copy link
Member

@evocateur evocateur commented Oct 5, 2019

Dunno what to tell you, it certainly does work. It looks like you're doing a lot of very hacky things.

@evocateur evocateur closed this Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.