-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NPM + Ruby Gem Alpha Release (#2366)
#### Breaking Changes No #### Runway Ticket URL https://nitro.powerhrg.com/runway/backlog_items/PLAY-593 #### How to test this Add an alpha label to our releases and see if it releases to npm and ruby gems. #### Checklist: - [X] **LABELS** Add a label: `enhancement`, `bug`, `improvement`, `new kit`, `deprecated`, or `breaking`. See [Changelog & Labels](https://github.com/powerhome/playbook/wiki/Changelog-&-Labels) for details. - [ ] **DEPLOY** Please add the `Milano` label when you are ready for a review. - [ ] **SCREENSHOT** Please add a screen shot or two. - [ ] **SPECS** Please cover your changes with specs. - [ ] **READ DOCS** Please make sure you have read and understand the [Playbook Release Process](https://github.com/powerhome/playbook/wiki/Playbook-Releases)
- Loading branch information
1 parent
6da8a36
commit e0fcd86
Showing
2 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
namespace :pb_release do | ||
desc "Update the version number in preparation to release" | ||
task :action, [:new_version] do |_task, args| | ||
new_version = args[:new_version] | ||
old_version = Playbook::VERSION | ||
version_rb = File.read("lib/playbook/version.rb") | ||
old_version_rb = version_rb.gsub(/PREVIOUS_VERSION\s=\s"\w{1,3}.\w{1,3}.\w{1,3}"/, "PREVIOUS_VERSION = \"#{old_version}\"") | ||
new_version_rb = old_version_rb.gsub(/\sVERSION\s=\s"\w{1,3}.\w{1,3}.\w{1,3}"/, " VERSION = \"#{new_version}\"") | ||
File.write("lib/playbook/version.rb", new_version_rb) | ||
end | ||
end |