Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Modify install.sh script to output message,
Browse files Browse the repository at this point in the history
redirecting user to Migrate web page for instructions.
  • Loading branch information
mkevinosullivan committed Jul 14, 2020
1 parent 4ae986f commit fbd3dd6
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 506 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version 0.9.0
------
* Initial test release of gem-based CLI
File renamed without changes.
51 changes: 51 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
## Releasing Shopify CLI

1. Check the Semantic Versioning page for info on how to version the new release: http://semver.org

2. Create a branch named `release_X_Y_Z` (replacing `X_Y_Z` with the intended release version)
```
$ git checkout -b release_X_Y_Z
```

3. Update the version of Shopify CLI in `lib/shopify-cli/version.rb`

4. Add an entry for the new release to `CHANGELOG.md`

5. Commit the changes with a commit message like "Packaging for release X.Y.Z"
```
$ git commit -am "Packaging for release X.Y.Z"
```

6. Push out the changes
```
$ git push -u origin release_X_Y_Z
```

7. Open a PR for the branch, get necessary approvals from code owners and merge into main branch

8. Deploy using Shipit

9. On local machine and _AFTER_ gem has been published to https://rubygems.org, run
```
$ rake package
```
This will generate the `.deb`, `.rpm` and brew formula files, which will be located in `packaging/builds/X.Y.Z/`.

10. Clone the `Shopify/homebrew-shopify` repository (if not already cloned), and then
* create a branch named `release_X_Y_Z_of_shopify-cli`
* update the brew formula in `shopify-cli.rb` with the generated formula in `packaging/builds/X.Y.Z/` in the `Shopify/shopify-app-cli` repo (from step 9)
* commit the change and create a PR
* when PR is approved, merge into main branch of `Shopify/homebrew-shopify` repository

11. Go to [releases](https://github.com/Shopify/shopify-app-cli/releases) page of `Shopify/shopify-app-cli` repo and create a new release:
* use the tag created in step 8 by Shipit (should be "vX.Y.Z")
* release title = "Version X.Y.Z"
* description should be
```
Release of version X.Y.Z of Shopify App CLI
Please refer to [CHANGELOG](https://github.com/Shopify/shopify-app-cli/blob/master/CHANGELOG.md) for details.
```
* upload the `.deb` and `.rpm` files from `packaging/builds/X.Y.Z/` (generated in step 9)
* if it's a pre-release version, select the "This is a pre-release" checkbox
* and click "Publish release".
8 changes: 2 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative 'bin/load_shopify'
require 'rake/testtask'
require 'rubocop/rake_task'
require 'bundler/gem_tasks'

Rake::TestTask.new do |t|
t.libs += %w(test)
Expand Down Expand Up @@ -75,11 +76,6 @@ namespace :package do

task all: [:debian, :rpm, :homebrew]

desc("Builds a gem of the CLI")
task :gem do
ShopifyCli::Packager.new.build_gem
end

desc("Builds a Debian package of the CLI")
task :debian do
ShopifyCli::Packager.new.build_debian
Expand All @@ -91,7 +87,7 @@ namespace :package do
end

desc("Builds a Homebrew package of the CLI")
task :homebrew => :"package:gem" do
task :homebrew do
ShopifyCli::Packager.new.build_homebrew
end
end
Expand Down
Loading

0 comments on commit fbd3dd6

Please sign in to comment.