{"action":"created","issue":{"url":"https://api.github.com/repos/semantic-release/npm/issues/64","repository_url":"https://api.github.com/repos/semantic-release/npm","labels_url":"https://api.github.com/repos/semantic-release/npm/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/semantic-release/npm/issues/64/comments","events_url":"https://api.github.com/repos/semantic-release/npm/issues/64/events","html_url":"https://github.com/semantic-release/npm/issues/64","id":317364047,"number":64,"title":"Version number updated in package.json and package-lock.json instead of package.json in pkgRoot","user":{"login":"pterblgh","id":11005750,"avatar_url":"https://avatars2.githubusercontent.com/u/11005750?v=4","gravatar_id":"","url":"https://api.github.com/users/pterblgh","html_url":"https://github.com/pterblgh","followers_url":"https://api.github.com/users/pterblgh/followers","following_url":"https://api.github.com/users/pterblgh/following{/other_user}","gists_url":"https://api.github.com/users/pterblgh/gists{/gist_id}","starred_url":"https://api.github.com/users/pterblgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pterblgh/subscriptions","organizations_url":"https://api.github.com/users/pterblgh/orgs","repos_url":"https://api.github.com/users/pterblgh/repos","events_url":"https://api.github.com/users/pterblgh/events{/privacy}","received_events_url":"https://api.github.com/users/pterblgh/received_events","type":"User","site_admin":false},"labels":[{"id":796295363,"url":"https://api.github.com/repos/semantic-release/npm/labels/support","name":"support","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-24T19:30:13Z","updated_at":"2018-04-24T20:13:45Z","closed_at":"2018-04-24T20:13:45Z","author_association":"NONE","body":"### Versions\r\n\r\n```\r\nsemantic-release: 15.1.7\r\n@semantic-release/npm: 3.2.4\r\n```\r\n\r\n### Configuration\r\n\r\n```json\r\n\"release\": {\r\n    \"noCi\": true,\r\n    \"tagFormat\": \"${version}\",\r\n    \"publish\": [\r\n      {\r\n        \"path\": \"@semantic-release/npm\",\r\n        \"pkgRoot\": \"dist\"\r\n      }\r\n    ]\r\n  }\r\n```\r\n\r\n### Description\r\n\r\nI have an [Angular repository](https://github.com/pterblgh/ngx-officeuifabric) where I would like to use semantic-release to maintain the version number of the library. However I have not succeeded using this package, yet. My build system compiles the source code to the `./dist` folder, which is the code that needs to be published.\r\n\r\nAs the [documentation declares](https://github.com/semantic-release/npm#options), the script should determine the next version number based on the commit messages and write this version number to the `package.json` in the provided `pkgRoot` folder.\r\n\r\nHowever, unexpectedly, at the end of the release process - currently I'm trying to release from my computer not from CI to have a better debugging experience - the version number of the `package.json` in the `dist` folder remains untouched and the `package.json` and `package-lock.json` files **in the root folder** are updated with the new version number. \r\n\r\nAt the end of a process like this, I am ended up with a situation where I have a \"successfully\" released version on GitHub and an NPM release with an incorrect version number.\r\n\r\nI am really happy to share more data about my issue, but I feel lost in this situation."},"comment":{"url":"https://api.github.com/repos/semantic-release/npm/issues/comments/384064566","html_url":"https://github.com/semantic-release/npm/issues/64#issuecomment-384064566","issue_url":"https://api.github.com/repos/semantic-release/npm/issues/64","id":384064566,"user":{"login":"pterblgh","id":11005750,"avatar_url":"https://avatars2.githubusercontent.com/u/11005750?v=4","gravatar_id":"","url":"https://api.github.com/users/pterblgh","html_url":"https://github.com/pterblgh","followers_url":"https://api.github.com/users/pterblgh/followers","following_url":"https://api.github.com/users/pterblgh/following{/other_user}","gists_url":"https://api.github.com/users/pterblgh/gists{/gist_id}","starred_url":"https://api.github.com/users/pterblgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pterblgh/subscriptions","organizations_url":"https://api.github.com/users/pterblgh/orgs","repos_url":"https://api.github.com/users/pterblgh/repos","events_url":"https://api.github.com/users/pterblgh/events{/privacy}","received_events_url":"https://api.github.com/users/pterblgh/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T20:13:45Z","updated_at":"2018-04-24T20:13:45Z","author_association":"NONE","body":"Thank you @pvdlg, this tip solved my issue. \r\n\r\nThis may be documented somewhere in the docs and I was the one who could not find it, but for a beginner (I've got familiar with semantic-release just today) like me it was totally unclear that steps have \"side effects\" in configuration setup.\r\n\r\nThank you again!"}}
{"actor":{"display_login":"pterblgh"}}