aboutsummaryrefslogtreecommitdiffstats
path: root/RELEASING_RAILS.md
diff options
context:
space:
mode:
authorJon Moss <me@jonathanmoss.me>2016-05-07 10:41:23 -0400
committerJeremy Daer <jeremydaer@gmail.com>2016-05-11 19:36:27 -0700
commit548c1d6e8b819ca4e02e6218b67107c580ee65f2 (patch)
treef97595c9f2982d2335ddfc36e51a7e38381b4ab5 /RELEASING_RAILS.md
parentd1794cd88c1de2f72ba35fd5cced42bc0f7528f9 (diff)
downloadrails-548c1d6e8b819ca4e02e6218b67107c580ee65f2.tar.gz
rails-548c1d6e8b819ca4e02e6218b67107c580ee65f2.tar.bz2
rails-548c1d6e8b819ca4e02e6218b67107c580ee65f2.zip
Publish Action Cable to NPM when we release.
Signed-off-by: Jeremy Daer <jeremydaer@gmail.com>
Diffstat (limited to 'RELEASING_RAILS.md')
-rw-r--r--RELEASING_RAILS.md22
1 files changed, 14 insertions, 8 deletions
diff --git a/RELEASING_RAILS.md b/RELEASING_RAILS.md
index 7575a1fefa..5ed5a8b029 100644
--- a/RELEASING_RAILS.md
+++ b/RELEASING_RAILS.md
@@ -103,18 +103,24 @@ branch.
Run `rake install` to generate the gems and install them locally. Then try
generating a new app and ensure that nothing explodes.
+Verify that Action Cable's package.json is updated with the RC version.
+
This will stop you from looking silly when you push an RC to rubygems.org and
then realize it is broken.
-### Release the gem.
+### Release to RubyGems and NPM.
+
+IMPORTANT: The Action Cable client is released as an NPM package, so you must
+have Node.js installed, have an NPM account (npmjs.com), and be an actioncable
+package owner (`npm owner ls actioncable`) to do a full release. Do not release
+until you're set up with NPM!
-IMPORTANT: Due to YAML parse problems on the rubygems.org server, it is safest
-to use Ruby 1.8 when releasing.
+Run `rake release`. This will populate the gemspecs and NPM package.json with
+the current RAILS_VERSION, commit the changes, tag it, and push the gems to
+rubygems.org.
-Run `rake release`. This will populate the gemspecs with data from
-RAILS_VERSION, commit the changes, tag it, and push the gems to rubygems.org.
-Here are the commands that `rake release` should use, so you can understand
-what to do in case anything goes wrong:
+Here are the commands that `rake release` uses so you can understand what to do
+in case anything goes wrong:
```
$ rake all:build
@@ -122,7 +128,7 @@ $ git commit -am'updating RAILS_VERSION'
$ git tag -m 'v3.0.10.rc1 release' v3.0.10.rc1
$ git push
$ git push --tags
-$ for i in $(ls pkg); do gem push $i; done
+$ for i in $(ls pkg); do gem push $i; npm publish; done
```
### Send Rails release announcements