Fix release task now that NPM is part of the build
Fix release task now that NPM is part of the build

Note: this commit looks super weird becuase git. I'm moving the entire
NPM section to the part where we actually push the gems/npm package for
the reasons below. That's not how the git diff looks though.

When we release Rails we run `rake prep_release` which calls
`update_versions`. This was updating the NPM version as well. But when we
would later run `rake install` to test the installed gem
`update_versions` gets called again which causes the install to fail
because NPM sees the version is the same as the last run and refuses to
continue. If you forget to stash this will then cause the push to
RubyGems to fail because `update_versions` is called again and then NPM
will not continue because it thinks the version hasn't been changed even
though it has.

The correct solution would be to not update the NPM verion if it matches
the version already in the file but after an hour I could not find a
simple way to use NPM to read the current version. Honestly that's not
the best way to do it either because say you forget to update something
else and then the script thinks it's already been updated.

With that in mind I think the best solution is to not update the NPM
version until right before we are going to push to NPM because then that
won't cause the push to RubyGems to fail.

kachick/rails,jeremy/rails,kmcphillips/rails,shioyama/rails,utilum/rails,tjschuck/rails,travisofthenorth/rails,flanger001/rails,sealocal/rails,mathieujobin/reduced-rails-for-travis,Erol/rails,gcourtemanche/rails,palkan/rails,repinel/rails,notapatch/rails,voray/rails,Envek/rails,stefanmb/rails,riseshia/railsguides.kr,fabianoleittes/rails,lcreid/rails,kmayer/rails,MSP-Greg/rails,felipecvo/rails,rafaelfranca/omg-rails,MSP-Greg/rails,vipulnsward/rails,MSP-Greg/rails,printercu/rails,betesh/rails,yahonda/rails,Edouard-chin/rails,richseviora/rails,starknx/rails,rafaelfranca/omg-rails,marklocklear/rails,EmmaB/rails-1,Vasfed/rails,Erol/rails,MichaelSp/rails,bolek/rails,joonyou/rails,Vasfed/rails,mohitnatoo/rails,BlakeWilliams/rails,stefanmb/rails,assain/rails,BlakeWilliams/rails,rails/rails,matrinox/rails,mtsmfm/railstest,yawboakye/rails,riseshia/railsguides.kr,mtsmfm/railstest,prathamesh-sonpatki/rails,shioyama/rails,marklocklear/rails,sergey-alekseev/rails,Edouard-chin/rails,Envek/rails,palkan/rails,bogdanvlviv/rails,hanystudy/rails,yawboakye/rails,mechanicles/rails,jeremy/rails,felipecvo/rails,bolek/rails,gfvcastro/rails,Stellenticket/rails,ttanimichi/rails,yahonda/rails,illacceptanything/illacceptanything,yawboakye/rails,yasslab/railsguides.jp,baerjam/rails,yhirano55/rails,kamipo/rails,mechanicles/rails,kirs/rails-1,Erol/rails,assain/rails,arunagw/rails,maicher/rails,brchristian/rails,rossta/rails,prathamesh-sonpatki/rails,bogdanvlviv/rails,mtsmfm/rails,yalab/rails,kddeisz/rails,gavingmiller/rails,Sen-Zhang/rails,MichaelSp/rails,kddeisz/rails,Edouard-chin/rails,assain/rails,rails/rails,koic/rails,notapatch/rails,bogdanvlviv/rails,utilum/rails,ledestin/rails,matrinox/rails,illacceptanything/illacceptanything,tgxworld/rails,alecspopa/rails,tijwelch/rails,sergey-alekseev/rails,brchristian/rails,gcourtemanche/rails,bogdanvlviv/rails,kenta-s/rails,kddeisz/rails,esparta/rails,esparta/rails,mohitnatoo/rails,odedniv/rails,pschambacher/rails,arunagw/rails,gavingmiller/rails,deraru/rails,mechanicles/rails,schuetzm/rails,starknx/rails,pschambacher/rails,ngpestelos/rails,repinel/rails,alecspopa/rails,xlymian/rails,kaspth/rails,mtsmfm/rails,lcreid/rails,tijwelch/rails,shioyama/rails,Stellenticket/rails,tgxworld/rails,elfassy/rails,gfvcastro/rails,mohitnatoo/rails,matrinox/rails,samphilipd/rails,kamipo/rails,Spin42/rails,aditya-kapoor/rails,brchristian/rails,georgeclaghorn/rails,yalab/rails,joonyou/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,aditya-kapoor/rails,arunagw/rails,yhirano55/rails,illacceptanything/illacceptanything,yahonda/rails,illacceptanything/illacceptanything,rbhitchcock/rails,kamipo/rails,pvalena/rails,gfvcastro/rails,utilum/rails,deraru/rails,Erol/rails,yalab/rails,kachick/rails,yhirano55/rails,schuetzm/rails,kirs/rails-1,bolek/rails,flanger001/rails,vipulnsward/rails,baerjam/rails,travisofthenorth/rails,tjschuck/rails,betesh/rails,yhirano55/rails,iainbeeston/rails,deraru/rails,koic/rails,coreyward/rails,prathamesh-sonpatki/rails,elfassy/rails,Edouard-chin/rails,illacceptanything/illacceptanything,rafaelfranca/omg-rails,joonyou/rails,mijoharas/rails,pvalena/rails,arunagw/rails,palkan/rails,Spin42/rails,Vasfed/rails,coreyward/rails,mechanicles/rails,arjes/rails,tgxworld/rails,flanger001/rails,maicher/rails,schuetzm/rails,bradleypriest/rails,tgxworld/rails,baerjam/rails,mtsmfm/railstest,printercu/rails,baerjam/rails,fabianoleittes/rails,yawboakye/rails,pvalena/rails,gavingmiller/rails,rails/rails,ledestin/rails,esparta/rails,ttanimichi/rails,yahonda/rails,mtsmfm/rails,untidy-hair/rails,lcreid/rails,betesh/rails,rbhitchcock/rails,elfassy/rails,rbhitchcock/rails,odedniv/rails,riseshia/railsguides.kr,notapatch/rails,fabianoleittes/rails,illacceptanything/illacceptanything,printercu/rails,kaspth/rails,maicher/rails,jeremy/rails,illacceptanything/illacceptanything,eileencodes/rails,marklocklear/rails,tjschuck/rails,hanystudy/rails,ngpestelos/rails,fabianoleittes/rails,untidy-hair/rails,georgeclaghorn/rails,lucasmazza/rails,mathieujobin/reduced-rails-for-travis,samphilipd/rails,kmcphillips/rails,notapatch/rails,assain/rails,palkan/rails,gauravtiwari/rails,sealocal/rails,mijoharas/rails,sealocal/rails,jeremy/rails,iainbeeston/rails,eileencodes/rails,Stellenticket/rails,kachick/rails,Envek/rails,voray/rails,richseviora/rails,Spin42/rails,ttanimichi/rails,Envek/rails,gauravtiwari/rails,richseviora/rails,rails/rails,gcourtemanche/rails,eileencodes/rails,rossta/rails,BlakeWilliams/rails,illacceptanything/illacceptanything,tjschuck/rails,illacceptanything/illacceptanything,odedniv/rails,gfvcastro/rails,samphilipd/rails,voray/rails,kmcphillips/rails,printercu/rails,mohitnatoo/rails,illacceptanything/illacceptanything,deraru/rails,ledestin/rails,arjes/rails,EmmaB/rails-1,kmcphillips/rails,shioyama/rails,EmmaB/rails-1,xlymian/rails,esparta/rails,riseshia/railsguides.kr,illacceptanything/illacceptanything,yasslab/railsguides.jp,betesh/rails,aditya-kapoor/rails,lcreid/rails,hanystudy/rails,repinel/rails,kmayer/rails,pschambacher/rails,prathamesh-sonpatki/rails,kenta-s/rails,eileencodes/rails,travisofthenorth/rails,iainbeeston/rails,illacceptanything/illacceptanything,untidy-hair/rails,iainbeeston/rails,vipulnsward/rails,travisofthenorth/rails,stefanmb/rails,georgeclaghorn/rails,georgeclaghorn/rails,starknx/rails,sergey-alekseev/rails,xlymian/rails,bradleypriest/rails,aditya-kapoor/rails,koic/rails,vipulnsward/rails,bradleypriest/rails,illacceptanything/illacceptanything,kmayer/rails,joonyou/rails,Sen-Zhang/rails,pvalena/rails,repinel/rails,lucasmazza/rails,flanger001/rails,Vasfed/rails,felipecvo/rails,kirs/rails-1,utilum/rails,yasslab/railsguides.jp,kaspth/rails,kenta-s/rails,schuetzm/rails,yasslab/railsguides.jp,Sen-Zhang/rails,MichaelSp/rails,mathieujobin/reduced-rails-for-travis,lucasmazza/rails,kddeisz/rails,BlakeWilliams/rails,ngpestelos/rails,tijwelch/rails,rossta/rails,alecspopa/rails,gauravtiwari/rails,untidy-hair/rails,MSP-Greg/rails,yalab/rails,Stellenticket/rails,coreyward/rails,arjes/rails,mijoharas/rails