{"action":"created","issue":{"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/547","labels_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/547/labels{/name}","comments_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/547/comments","events_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/547/events","html_url":"https://github.com/react-bootstrap/react-bootstrap/issues/547","id":69858532,"number":547,"title":"Current version on docs is always one version behind in automated release","user":{"login":"mtscout6","id":736870,"avatar_url":"https://avatars.githubusercontent.com/u/736870?v=3","gravatar_id":"","url":"https://api.github.com/users/mtscout6","html_url":"https://github.com/mtscout6","followers_url":"https://api.github.com/users/mtscout6/followers","following_url":"https://api.github.com/users/mtscout6/following{/other_user}","gists_url":"https://api.github.com/users/mtscout6/gists{/gist_id}","starred_url":"https://api.github.com/users/mtscout6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtscout6/subscriptions","organizations_url":"https://api.github.com/users/mtscout6/orgs","repos_url":"https://api.github.com/users/mtscout6/repos","events_url":"https://api.github.com/users/mtscout6/events{/privacy}","received_events_url":"https://api.github.com/users/mtscout6/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/labels/help%20wanted","name":"help wanted","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"AlexKVal","id":847572,"avatar_url":"https://avatars.githubusercontent.com/u/847572?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexKVal","html_url":"https://github.com/AlexKVal","followers_url":"https://api.github.com/users/AlexKVal/followers","following_url":"https://api.github.com/users/AlexKVal/following{/other_user}","gists_url":"https://api.github.com/users/AlexKVal/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexKVal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexKVal/subscriptions","organizations_url":"https://api.github.com/users/AlexKVal/orgs","repos_url":"https://api.github.com/users/AlexKVal/repos","events_url":"https://api.github.com/users/AlexKVal/events{/privacy}","received_events_url":"https://api.github.com/users/AlexKVal/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-21T14:19:58Z","updated_at":"2015-04-23T19:42:18Z","closed_at":null,"body":"![](http://cl.ly/image/0K0d2c2P1G0v/Image%202015-04-21%20at%208.12.38%20AM.png)\r\n\r\nThe version displayed at the footer of the online documentation is always one version behind when we release. 0.21.0 was just released this morning and it reads 0.20.3, and prior to the release it was 0.20.2.\r\n\r\nI'm pretty sure the culprit is here: https://github.com/react-bootstrap/react-bootstrap/blob/master/docs/src/PageFooter.js#L2\r\n\r\nI'm thinking that this module get's imported into the NodeJS Runtime prior to the version bump here: https://github.com/react-bootstrap/react-bootstrap/blob/master/tools/release-scripts/version-bump.js\r\n\r\nThe best way I can think of to change this is to have the docs generation get executed in a separate process after the version bump occurs. This change would be here: https://github.com/react-bootstrap/react-bootstrap/blob/master/tools/build.js#L32\r\n\r\nBasically don't import the docs build script, instead execute `npm run docs-build` as specified in the [package.json](https://github.com/react-bootstrap/react-bootstrap/blob/v0.21.0/package.json#L15)\r\n\r\nThis should be a simple change should somebody wish to tackle their understanding of the release scripts."},"comment":{"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/comments/95695910","html_url":"https://github.com/react-bootstrap/react-bootstrap/issues/547#issuecomment-95695910","issue_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/547","id":95695910,"user":{"login":"AlexKVal","id":847572,"avatar_url":"https://avatars.githubusercontent.com/u/847572?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexKVal","html_url":"https://github.com/AlexKVal","followers_url":"https://api.github.com/users/AlexKVal/followers","following_url":"https://api.github.com/users/AlexKVal/following{/other_user}","gists_url":"https://api.github.com/users/AlexKVal/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexKVal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexKVal/subscriptions","organizations_url":"https://api.github.com/users/AlexKVal/orgs","repos_url":"https://api.github.com/users/AlexKVal/repos","events_url":"https://api.github.com/users/AlexKVal/events{/privacy}","received_events_url":"https://api.github.com/users/AlexKVal/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T19:42:18Z","updated_at":"2015-04-23T19:42:18Z","body":"I'll try to tuckle with those maintainers tools.\r\n\r\nSomething like that. But I need to test it first. (and doing this not publish accidentally)\r\nhere [tools/build.js:32](https://github.com/react-bootstrap/react-bootstrap/blob/master/tools/build.js#L32)\r\n```js\r\n let result = Promise.all([\r\n  lib(),\r\n  bower(),\r\n  dist() \r\n  // removed docs()\r\n])\r\n.then(() => exec(`npm run docs-build`)) // <= added\r\n.then(() => copy(distFolder, amdFolder));\r\n```"}}