{"action":"opened","issue":{"url":"https://api.github.com/repos/lerna/lerna/issues/1595","repository_url":"https://api.github.com/repos/lerna/lerna","labels_url":"https://api.github.com/repos/lerna/lerna/issues/1595/labels{/name}","comments_url":"https://api.github.com/repos/lerna/lerna/issues/1595/comments","events_url":"https://api.github.com/repos/lerna/lerna/issues/1595/events","html_url":"https://github.com/lerna/lerna/issues/1595","id":352671549,"node_id":"MDU6SXNzdWUzNTI2NzE1NDk=","number":1595,"title":"ENOGIT error in CI","user":{"login":"randy-askin","id":42586376,"node_id":"MDQ6VXNlcjQyNTg2Mzc2","avatar_url":"https://avatars0.githubusercontent.com/u/42586376?v=4","gravatar_id":"","url":"https://api.github.com/users/randy-askin","html_url":"https://github.com/randy-askin","followers_url":"https://api.github.com/users/randy-askin/followers","following_url":"https://api.github.com/users/randy-askin/following{/other_user}","gists_url":"https://api.github.com/users/randy-askin/gists{/gist_id}","starred_url":"https://api.github.com/users/randy-askin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randy-askin/subscriptions","organizations_url":"https://api.github.com/users/randy-askin/orgs","repos_url":"https://api.github.com/users/randy-askin/repos","events_url":"https://api.github.com/users/randy-askin/events{/privacy}","received_events_url":"https://api.github.com/users/randy-askin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-21T19:08:48Z","updated_at":"2018-08-21T19:08:48Z","closed_at":null,"author_association":"NONE","body":"## Expected Behavior\r\nIn previous versions (v2, v3-beta), the `--skip-git` command worked as expected.\r\n\r\n## Current Behavior\r\nIn v3+, even if we move to the new `--no-git-tag-version --no-push` flags specified in the deprecation message, our CI is failing on the `ENOGIT` error [here](https://github.com/lerna/lerna/blob/master/commands/version/index.js#L87-L89).\r\n\r\n## Possible Solution\r\nShould [this if check](https://github.com/lerna/lerna/blob/master/commands/version/index.js#L104-L108) be moved up in the code so that ENOGIT/ENOCOMMIT/ENOTALLOWED aren't triggered when the `--no-git-tag-version --no-push` flags are used?\r\n\r\n## Steps to Reproduce (for bugs)\r\n1. We are using `lerna version x.y.z --no-git-tag-version --no-push && lerna publish --yes`\r\n2. ENOGIT error causes CI job to fail\r\n\r\n<details><summary>lerna.json</summary><p>\r\n<!-- browsers demand the next line be empty -->\r\n\r\n```json\r\n{\r\n\t\"packages\": [\"packages/*\"],\r\n\t\"version\": \"0.0.19-rc.3\",\r\n\t\"command\": {\r\n\t\t\"init\": {\r\n\t\t\t\"exact\": true\r\n\t\t}\r\n\t},\r\n\t\"lerna\": \"3.1.1\"\r\n}\r\n```\r\n</p></details>\r\n\r\n## Context\r\nWe are trying to use the skip git functionality because Jenkins/Maven take care of that in our company's CI process.\r\n\r\n## Your Environment\r\n\r\n| Executable | Version |\r\n| ---: | :--- |\r\n| `lerna --version` | worked in 3.0.0-beta.21 with `--skip-git`, broken in 3.0+ |\r\n| `npm --version`  | 6.3.0 |\r\n| `yarn --version` | n/a |\r\n| `node --version` | 8.5.0 |\r\n\r\n| OS | Version |\r\n| --- | --- |\r\n| macOS High Sierra | 10.13.6 |\r\n"}}
{"actor":{"display_login":"randy-askin"}}