{"action":"created","issue":{"url":"https://api.github.com/repos/semantic-release/semantic-release/issues/753","repository_url":"https://api.github.com/repos/semantic-release/semantic-release","labels_url":"https://api.github.com/repos/semantic-release/semantic-release/issues/753/labels{/name}","comments_url":"https://api.github.com/repos/semantic-release/semantic-release/issues/753/comments","events_url":"https://api.github.com/repos/semantic-release/semantic-release/issues/753/events","html_url":"https://github.com/semantic-release/semantic-release/issues/753","id":317289266,"node_id":"MDU6SXNzdWUzMTcyODkyNjY=","number":753,"title":"Add an option to output the version that would be published","user":{"login":"BenoitAverty","id":17006335,"node_id":"MDQ6VXNlcjE3MDA2MzM1","avatar_url":"https://avatars0.githubusercontent.com/u/17006335?v=4","gravatar_id":"","url":"https://api.github.com/users/BenoitAverty","html_url":"https://github.com/BenoitAverty","followers_url":"https://api.github.com/users/BenoitAverty/followers","following_url":"https://api.github.com/users/BenoitAverty/following{/other_user}","gists_url":"https://api.github.com/users/BenoitAverty/gists{/gist_id}","starred_url":"https://api.github.com/users/BenoitAverty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenoitAverty/subscriptions","organizations_url":"https://api.github.com/users/BenoitAverty/orgs","repos_url":"https://api.github.com/users/BenoitAverty/repos","events_url":"https://api.github.com/users/BenoitAverty/events{/privacy}","received_events_url":"https://api.github.com/users/BenoitAverty/received_events","type":"User","site_admin":false},"labels":[{"id":780658811,"node_id":"MDU6TGFiZWw3ODA2NTg4MTE=","url":"https://api.github.com/repos/semantic-release/semantic-release/labels/design","name":"design","color":"0e8a16","default":false},{"id":239250070,"node_id":"MDU6TGFiZWwyMzkyNTAwNzA=","url":"https://api.github.com/repos/semantic-release/semantic-release/labels/feature","name":"feature","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2018-04-24T15:52:30Z","updated_at":"2018-07-13T21:24:04Z","closed_at":null,"author_association":"NONE","body":"# Feature request\r\n\r\n## New feature motivation\r\nI am currently implementing automatic releases for my project, which is a web application. The project currently satisfies my needs as I can disable the npm plugins and replace it with gitlab plugins.\r\n\r\nThe problem is that I need to put the version of my project into the built application (via Webpack's DefinePlugin), but the version field of my package.json is always set to 0.0.0.\r\n\r\nI would like to be able to use semantic-release to print the version that would be published and use it in webpack DefinePlugin.\r\n\r\nCurrently, the only way to do that would be to parse the output of a dry-run, but it is complicated and not stable.\r\n\r\n## New feature description\r\n\r\nI see two ways this could happen : \r\n * The simple one is to provide a cli option to instruct semantic release to just print the version. For example `semantic-release --print-next-version`\r\n * Allow a more extensive programmatic usage of semantic-release, with a JS api that would (among other things) allow to retrieve the next version.\r\n\r\nI could open a PR for the first solution if you'd like. The second one is a bigger task (probably several tasks)\r\n"},"comment":{"url":"https://api.github.com/repos/semantic-release/semantic-release/issues/comments/404957837","html_url":"https://github.com/semantic-release/semantic-release/issues/753#issuecomment-404957837","issue_url":"https://api.github.com/repos/semantic-release/semantic-release/issues/753","id":404957837,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDk1NzgzNw==","user":{"login":"andresmijares","id":6274454,"node_id":"MDQ6VXNlcjYyNzQ0NTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6274454?v=4","gravatar_id":"","url":"https://api.github.com/users/andresmijares","html_url":"https://github.com/andresmijares","followers_url":"https://api.github.com/users/andresmijares/followers","following_url":"https://api.github.com/users/andresmijares/following{/other_user}","gists_url":"https://api.github.com/users/andresmijares/gists{/gist_id}","starred_url":"https://api.github.com/users/andresmijares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresmijares/subscriptions","organizations_url":"https://api.github.com/users/andresmijares/orgs","repos_url":"https://api.github.com/users/andresmijares/repos","events_url":"https://api.github.com/users/andresmijares/events{/privacy}","received_events_url":"https://api.github.com/users/andresmijares/received_events","type":"User","site_admin":false},"created_at":"2018-07-13T21:24:04Z","updated_at":"2018-07-13T21:24:04Z","author_association":"NONE","body":"my bad, I just figured I had 1 issue not related to the package, it worked like charm, I decided to use `${version}` since it is the one marked for `tag-format` sample.\r\n\r\nThank you for the comment! "}}
{"actor":{"display_login":"andresmijares"}}