shopify-cli 1.2.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODEOWNERS +2 -2
  3. data/.github/CONTRIBUTING.md +9 -1
  4. data/.github/PULL_REQUEST_TEMPLATE.md +9 -1
  5. data/.github/workflows/release.yml +61 -0
  6. data/.github/workflows/triage.yml +22 -0
  7. data/.gitignore +0 -1
  8. data/.rubocop.yml +61 -8
  9. data/.rubocop_todo.yml +11 -0
  10. data/CHANGELOG.md +25 -0
  11. data/Gemfile +3 -2
  12. data/Gemfile.lock +39 -37
  13. data/RELEASING.md +19 -29
  14. data/docs/core/index.md +16 -0
  15. data/lib/project_types/extension/cli.rb +7 -2
  16. data/lib/project_types/extension/commands/register.rb +1 -1
  17. data/lib/project_types/extension/features/argo/admin.rb +20 -0
  18. data/lib/project_types/extension/features/argo/base.rb +129 -0
  19. data/lib/project_types/extension/features/argo/checkout.rb +20 -0
  20. data/lib/project_types/extension/messages/messages.rb +8 -2
  21. data/lib/project_types/extension/models/type.rb +4 -0
  22. data/lib/project_types/extension/models/types/checkout_post_purchase.rb +2 -2
  23. data/lib/project_types/extension/models/types/product_subscription.rb +24 -0
  24. data/lib/project_types/node/cli.rb +4 -1
  25. data/lib/project_types/node/commands/connect.rb +15 -0
  26. data/lib/project_types/node/commands/create.rb +8 -4
  27. data/lib/project_types/node/messages/messages.rb +7 -6
  28. data/lib/project_types/rails/cli.rb +4 -1
  29. data/lib/project_types/rails/commands/connect.rb +15 -0
  30. data/lib/project_types/rails/commands/create.rb +8 -4
  31. data/lib/project_types/rails/messages/messages.rb +7 -4
  32. data/lib/project_types/script/cli.rb +2 -1
  33. data/lib/project_types/script/commands/enable.rb +12 -4
  34. data/lib/project_types/script/config/extension_points.yml +13 -12
  35. data/lib/project_types/script/errors.rb +4 -0
  36. data/lib/project_types/script/layers/application/build_script.rb +12 -16
  37. data/lib/project_types/script/layers/domain/errors.rb +3 -0
  38. data/lib/project_types/script/layers/domain/extension_point.rb +0 -1
  39. data/lib/project_types/script/layers/infrastructure/assemblyscript_project_creator.rb +15 -50
  40. data/lib/project_types/script/layers/infrastructure/assemblyscript_task_runner.rb +28 -7
  41. data/lib/project_types/script/layers/infrastructure/errors.rb +16 -0
  42. data/lib/project_types/script/layers/infrastructure/script_repository.rb +0 -12
  43. data/lib/project_types/script/layers/infrastructure/script_service.rb +2 -0
  44. data/lib/project_types/script/messages/messages.rb +23 -5
  45. data/lib/project_types/script/ui/error_handler.rb +31 -6
  46. data/lib/shopify-cli/api.rb +8 -10
  47. data/lib/shopify-cli/commands/config.rb +57 -1
  48. data/lib/shopify-cli/commands/connect.rb +32 -15
  49. data/lib/shopify-cli/commands/system.rb +9 -0
  50. data/lib/shopify-cli/core/entry_point.rb +1 -1
  51. data/lib/shopify-cli/core/monorail.rb +6 -4
  52. data/lib/shopify-cli/http_request.rb +15 -0
  53. data/lib/shopify-cli/js_deps.rb +1 -1
  54. data/lib/shopify-cli/js_system.rb +22 -5
  55. data/lib/shopify-cli/messages/messages.rb +44 -9
  56. data/lib/shopify-cli/partners_api.rb +17 -1
  57. data/lib/shopify-cli/process_supervision.rb +1 -1
  58. data/lib/shopify-cli/project.rb +12 -8
  59. data/lib/shopify-cli/project_type.rb +17 -1
  60. data/lib/shopify-cli/shopifolk.rb +86 -0
  61. data/lib/shopify-cli/task.rb +8 -0
  62. data/lib/shopify-cli/tasks/create_api_client.rb +13 -2
  63. data/lib/shopify-cli/tasks/ensure_env.rb +3 -0
  64. data/lib/shopify-cli/tasks/select_org_and_shop.rb +4 -0
  65. data/lib/shopify-cli/tunnel.rb +1 -1
  66. data/lib/shopify-cli/version.rb +1 -1
  67. data/lib/shopify_cli.rb +1 -0
  68. metadata +13 -5
  69. data/lib/project_types/extension/features/argo.rb +0 -48
  70. data/lib/project_types/extension/models/types/subscription_management.rb +0 -20
  71. data/lib/project_types/script/layers/infrastructure/assemblyscript_tsconfig.rb +0 -38
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aac6d7ad80aa747af6b8334b1cf6f82b3dfc0c6db77e8e22eb9638365b11317b
4
- data.tar.gz: f5a744abb193c02bad16f0978d93bac2825ce287f95e3143848be47c28c8bbfc
3
+ metadata.gz: 6d907a49558ca8dfb5998667698b5bf262d850a55951ac2af30c178f141d9063
4
+ data.tar.gz: 833124c900634e59426bef89dd7fbf35948d19b73e55ecb96becfb6307b3cc3a
5
5
  SHA512:
6
- metadata.gz: b934e0c4c5321cdb01d733886e2eae5fc23c94c1ea7115e9b18af302244512d93617440d1a4274ca764305c6797a10ef79285c97cf03636d473deec63a6a0d23
7
- data.tar.gz: fec928d425a1be8c543d45d495156857fcf848c12170eaf825fdf549f70536198fdf076d71b35b448b97769869ac85e2eddb8d6dd1321a2f93949160cd2929fa
6
+ metadata.gz: 4670c00c70ae907f1d5eea958ba512ac61e2579566dabf4bb09345925d6da2cd882e5c4d0e9bededd92fd779f85326d4b4cbc66d3c268ee816aa0d23330bc55c
7
+ data.tar.gz: 33a780da492b11846f89d84b74da119d707236846e4b9617ccb1541cde9be83b0f33fcf302d92b3aaa58c3634ed9004d3d2b7673f0a2a916b33ed2336b2835f9
@@ -1,4 +1,4 @@
1
1
  * @shopify/platform-dev-tools-education
2
2
 
3
- /lib/project_types/script/ @shopify/scripts
4
- /test/project_types/script/ @shopify/scripts
3
+ /lib/project_types/script/ @shopify/scripts-experience
4
+ /test/project_types/script/ @shopify/scripts-experience
@@ -19,6 +19,14 @@ When contributing to the Shopify App CLI, there are a set of [design guidelines]
19
19
 
20
20
  We track all of our issues in GitHub and [bugs](https://github.com/Shopify/shopify-app-cli/labels/Bug) are labeled accordingly. If you are planning to work on an issue, avoid ones which already have an assignee, where someone has commented within the last two weeks they are working on it, or the issue is labeled with [fix in progress](https://github.com/Shopify/shopify-app-cli/labels/fix%20in%20progress). We will do our best to communicate when an issue is being worked on internally.
21
21
 
22
+ ### Running against a local environment
23
+
24
+ This section only applies to Shopify staff:
25
+
26
+ To run against a local Partners or Identity instance, you can use:
27
+
28
+ `SHOPIFY_APP_CLI_LOCAL_PARTNERS=1 shopify`
29
+
22
30
  ### Reporting new issues
23
31
 
24
32
  To reduce duplicates, look through open issues before filing one. When [opening an issue](https://github.com/Shopify/shopify-app-cli/issues/new?template=ISSUE.md), complete as much of the template as possible.
@@ -48,4 +56,4 @@ Each contributor is required to [sign a CLA](https://cla.shopify.com/). This pro
48
56
 
49
57
  If you are changing the CLI version, please make sure to update all the places that use it:
50
58
  * ShopifyCLI::VERSION
51
- * Debian package version under `packaging/debian`
59
+ * Debian package version under `packaging/debian`
@@ -3,7 +3,7 @@
3
3
  - Prefix it with [Feature] (if applicable)
4
4
  - Start with a verb, for example: Add, Delete, Improve, Fix…
5
5
  - Give as much context as necessary and as little as possible
6
- - Prefix it with [WIP] while it’s a work in progress
6
+ - Use a draft PR while it’s a work in progress
7
7
  -->
8
8
 
9
9
  ### WHY are these changes introduced?
@@ -20,3 +20,11 @@ Fixes #0000 <!-- link to issue if one exists -->
20
20
  Summary of the changes committed.
21
21
  Before / after screenshots appreciated for UI changes.
22
22
  -->
23
+
24
+ ### Update checklist
25
+ <!--
26
+ Ideally, CHANGELOG entries should be in the format
27
+ `* [#PR](PR URL): Message`. You should consider adding your PR
28
+ and then making the CHANGELOG update once you know the PR number.
29
+ -->
30
+ - [ ] I've added a CHANGELOG entry for this PR (if the change is public-facing)
@@ -0,0 +1,61 @@
1
+ name: Create Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ jobs:
9
+ create-release:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Extract tag name
13
+ id: tag
14
+ run: echo "::set-output name=value::${GITHUB_REF##*/}"
15
+ - uses: actions/checkout@v2
16
+
17
+ - name: Set up Ruby
18
+ uses: actions/setup-ruby@v1.1.2
19
+ with:
20
+ ruby-version: 2.6
21
+
22
+ - name: Install dependencies
23
+ run: bundle install
24
+
25
+ - name: Create package
26
+ run: bundle exec rake package
27
+
28
+ - name: Get Directory
29
+ id: folder
30
+ run: |
31
+ cd packaging/builds
32
+ echo ::set-output name=name::$(ls)
33
+
34
+ - name: Get Packages
35
+ id: binaries
36
+ run: |
37
+ cd packaging/builds/${{ steps.folder.outputs.name }}
38
+ deb=$(find . -type f -name '*.deb')
39
+ rpm=$(find . -type f -name "*.rpm")
40
+ echo ::set-output name=deb_file::"${deb:2}"
41
+ echo ::set-output name=rpm_file::"${rpm:2}"
42
+
43
+ - uses: dawidd6/action-homebrew-bump-formula@v3
44
+ with:
45
+ token: ${{secrets.BREW_TOKEN}}
46
+ tap: shopify/shopify
47
+ formula: shopify-cli
48
+ tag: ${{ steps.folder.outputs.name }}
49
+
50
+ - name: Create Release # https://hub.github.com/hub-release.1.html
51
+ env:
52
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53
+ run: |
54
+ cd packaging/builds/${{ steps.folder.outputs.name }}
55
+ hub release create ${{ steps.tag.outputs.value }} \
56
+ -a ${{ steps.binaries.outputs.deb_file }} \
57
+ -a ${{ steps.binaries.outputs.rpm_file }} \
58
+ -m "Version ${{ steps.folder.outputs.name }}
59
+
60
+ Release of version ${{ steps.folder.outputs.name }} of the Shopify App CLI
61
+ Please refer to [CHANGELOG](https://github.com/Shopify/shopify-app-cli/blob/master/CHANGELOG.md) for details."
@@ -0,0 +1,22 @@
1
+ name: Triage new issues to DTE oncall project board ("Needs triage" column)
2
+
3
+ on:
4
+ issues:
5
+ types: [opened, reopened]
6
+
7
+ jobs:
8
+ triage-issue:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Extract issue id
12
+ id: issue
13
+ run: echo "::set-output name=id::$(jq -r '.issue.id' < "$GITHUB_EVENT_PATH")"
14
+
15
+ - name: Create card
16
+ env:
17
+ TOKEN: ${{ secrets.ACTIONS_TOKEN }}
18
+ run: |
19
+ curl -s -X POST -u "$GITHUB_ACTOR:$TOKEN" --retry 3 \
20
+ -H 'Accept: application/vnd.github.inertia-preview+json' \
21
+ -d "{\"content_type\": \"Issue\", \"content_id\": ${{ steps.issue.outputs.id }}}" \
22
+ "https://api.github.com/projects/columns/10507989/cards"
data/.gitignore CHANGED
@@ -1,4 +1,3 @@
1
- .rubocop-*
2
1
  .tmp/*
3
2
  .bundle/*
4
3
  .DS_Store
@@ -1,5 +1,43 @@
1
- inherit_from:
2
- - https://shopify.github.io/ruby-style-guide/rubocop-cli.yml
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ require: rubocop-minitest
4
+
5
+ inherit_gem:
6
+ rubocop-shopify:
7
+ - rubocop-cli.yml
8
+
9
+ Minitest:
10
+ Enabled: true
11
+ Include:
12
+ - '**/test/**/*'
13
+ - '**/*_test.rb'
14
+
15
+ Minitest/AssertInDelta: # (new in 0.10)
16
+ Enabled: true
17
+ Minitest/AssertionInLifecycleHook: # (new in 0.10)
18
+ Enabled: true
19
+ Minitest/AssertKindOf: # (new in 0.10)
20
+ Enabled: true
21
+ Minitest/AssertOutput: # (new in 0.10)
22
+ Enabled: true
23
+ Minitest/AssertPathExists: # (new in 0.10)
24
+ Enabled: false # only available from minitest 5.13.0
25
+ Minitest/AssertSilent: # (new in 0.10)
26
+ Enabled: true
27
+ Minitest/LiteralAsActualArgument: # (new in 0.10)
28
+ Enabled: true
29
+ Minitest/MultipleAssertions: # (new in 0.10)
30
+ Enabled: true
31
+ Minitest/RefuteInDelta: # (new in 0.10)
32
+ Enabled: true
33
+ Minitest/RefuteKindOf: # (new in 0.10)
34
+ Enabled: true
35
+ Minitest/RefutePathExists: # (new in 0.10)
36
+ Enabled: false # only available from minitest 5.13.0
37
+ Minitest/TestMethodName: # (new in 0.10)
38
+ Enabled: true
39
+ Minitest/UnspecifiedException: # (new in 0.10)
40
+ Enabled: true
3
41
 
4
42
  AllCops:
5
43
  Exclude:
@@ -13,6 +51,9 @@ Layout/EmptyLines:
13
51
  # Need extra line so comment at top isnt registered to the Dev namespace
14
52
  - 'lib/dev/helpers/chruby_reset.rb'
15
53
 
54
+ Layout/EmptyLineBetweenDefs:
55
+ AllowAdjacentOneLineDefs: true
56
+
16
57
  # Changing this could effect the way the content is rendered.
17
58
  Layout/HeredocIndentation:
18
59
  Exclude:
@@ -36,12 +77,24 @@ Style/RegexpLiteral:
36
77
 
37
78
  Style/MethodCallWithArgsParentheses:
38
79
  IgnoredMethods:
80
+ - assert
81
+ - assert_equal
82
+ - assert_includes
83
+ - assert_nil
84
+ - assert_raises
85
+ - assert_requested # from Webmock
86
+ - puts
87
+ - raise
88
+ - refute
89
+ - refute_empty
90
+ - refute_nil
39
91
  - require
40
- - require_relative
41
92
  - require_dependency
93
+ - require_relative
42
94
  - yield
43
- - raise
44
- - puts
45
- - assert_equal
46
- - assert
47
- - refute
95
+
96
+ Layout/TrailingWhitespace:
97
+ Exclude:
98
+ - 'ext/shopify-cli/extconf.rb' # unsure if safe to remove
99
+ - 'lib/project_types/extension/messages/messages.rb' # unsure if safe to remove
100
+ - 'test/project_types/extension/extension_test_helpers/stubs/argo_script.rb' # unsure if save to remove
@@ -0,0 +1,11 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2020-12-01 16:33:09 UTC using RuboCop version 1.4.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 30
10
+ Minitest/MultipleAssertions:
11
+ Max: 9
@@ -1,3 +1,28 @@
1
+ Unreleased
2
+ ------
3
+
4
+ Version 1.5.0
5
+ -----
6
+ * [#965](https://github.com/Shopify/shopify-app-cli/pull/965): Remove --no-optional when using npm to create new project
7
+ * [#958](https://github.com/Shopify/shopify-app-cli/pull/958): Split `connect` command into project-specific functionality
8
+
9
+ Version 1.4.1
10
+ ------
11
+ * [#917](https://github.com/Shopify/shopify-app-cli/pull/917): Ensure analytics for create action includes the same fields as other commands
12
+
13
+ Version 1.4.0
14
+ ------
15
+ * Updates to tests, dependencies and internal tooling
16
+ * [#924](https://github.com/Shopify/shopify-app-cli/pull/924): Improve debugging messages on Partner API errors
17
+
18
+ Version 1.3.1
19
+ ------
20
+ * Allow any characters in ngrok account names
21
+
22
+ Version 1.3.0
23
+ ------
24
+ * Support for new `shopify config analytics` command to enable/disable anonymous usage reporting
25
+
1
26
  Version 1.2.0
2
27
  ------
3
28
  * Improvements and new functionality to various internal components
data/Gemfile CHANGED
@@ -8,14 +8,15 @@ group :development, :test do
8
8
  gem 'rake'
9
9
  gem 'pry-byebug'
10
10
  gem 'byebug'
11
- gem 'rubocop'
11
+ gem 'rubocop-shopify', require: false
12
+ gem 'rubocop-minitest', require: false
12
13
  end
13
14
 
14
15
  group :test do
15
- gem 'session'
16
16
  gem 'mocha', require: false
17
17
  gem 'minitest', '>= 5.0.0', require: false
18
18
  gem 'minitest-reporters', require: false
19
+ gem 'minitest-fail-fast', require: false
19
20
  gem 'fakefs', '>= 1.0', require: false
20
21
  gem 'webmock', require: false
21
22
  gem 'timecop', require: false
@@ -1,61 +1,62 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- addressable (2.5.2)
5
- public_suffix (>= 2.0.2, < 4.0)
4
+ addressable (2.7.0)
5
+ public_suffix (>= 2.0.2, < 5.0)
6
6
  ansi (1.5.0)
7
7
  ast (2.4.1)
8
- builder (3.2.3)
9
- byebug (8.2.5)
10
- coderay (1.1.2)
11
- crack (0.4.3)
12
- safe_yaml (~> 1.0.0)
8
+ builder (3.2.4)
9
+ byebug (11.1.3)
10
+ coderay (1.1.3)
11
+ crack (0.4.4)
13
12
  fakefs (1.2.2)
14
- hashdiff (0.3.2)
15
- metaclass (0.0.4)
16
- method_source (0.9.2)
17
- minitest (5.11.3)
18
- minitest-reporters (1.3.5)
13
+ hashdiff (1.0.1)
14
+ method_source (1.0.0)
15
+ minitest (5.14.2)
16
+ minitest-fail-fast (0.1.0)
17
+ minitest (~> 5)
18
+ minitest-reporters (1.4.2)
19
19
  ansi
20
20
  builder
21
21
  minitest (>= 5.0)
22
22
  ruby-progressbar
23
- mocha (1.7.0)
24
- metaclass (~> 0.0.1)
25
- parallel (1.19.2)
26
- parser (2.7.1.4)
23
+ mocha (1.11.2)
24
+ parallel (1.20.1)
25
+ parser (2.7.2.0)
27
26
  ast (~> 2.4.1)
28
- pry (0.12.2)
29
- coderay (~> 1.1.0)
30
- method_source (~> 0.9.0)
31
- pry-byebug (3.3.0)
32
- byebug (~> 8.0)
33
- pry (~> 0.10)
34
- public_suffix (3.0.3)
27
+ pry (0.13.1)
28
+ coderay (~> 1.1)
29
+ method_source (~> 1.0)
30
+ pry-byebug (3.9.0)
31
+ byebug (~> 11.0)
32
+ pry (~> 0.13.0)
33
+ public_suffix (4.0.6)
35
34
  rainbow (3.0.0)
36
35
  rake (13.0.1)
37
- regexp_parser (1.7.1)
36
+ regexp_parser (1.8.2)
38
37
  rexml (3.2.4)
39
- rubocop (0.89.1)
38
+ rubocop (1.4.1)
40
39
  parallel (~> 1.10)
41
- parser (>= 2.7.1.1)
40
+ parser (>= 2.7.1.5)
42
41
  rainbow (>= 2.2.2, < 4.0)
43
- regexp_parser (>= 1.7)
42
+ regexp_parser (>= 1.8)
44
43
  rexml
45
- rubocop-ast (>= 0.3.0, < 1.0)
44
+ rubocop-ast (>= 1.1.1)
46
45
  ruby-progressbar (~> 1.7)
47
46
  unicode-display_width (>= 1.4.0, < 2.0)
48
- rubocop-ast (0.3.0)
49
- parser (>= 2.7.1.4)
47
+ rubocop-ast (1.1.1)
48
+ parser (>= 2.7.1.5)
49
+ rubocop-minitest (0.10.1)
50
+ rubocop (>= 0.87)
51
+ rubocop-shopify (1.0.7)
52
+ rubocop (~> 1.4)
50
53
  ruby-progressbar (1.10.1)
51
- safe_yaml (1.0.4)
52
- session (3.2.0)
53
- timecop (0.9.1)
54
+ timecop (0.9.2)
54
55
  unicode-display_width (1.7.0)
55
- webmock (2.3.2)
56
+ webmock (3.9.3)
56
57
  addressable (>= 2.3.6)
57
58
  crack (>= 0.3.2)
58
- hashdiff
59
+ hashdiff (>= 0.4.0, < 2.0.0)
59
60
 
60
61
  PLATFORMS
61
62
  ruby
@@ -64,12 +65,13 @@ DEPENDENCIES
64
65
  byebug
65
66
  fakefs (>= 1.0)
66
67
  minitest (>= 5.0.0)
68
+ minitest-fail-fast
67
69
  minitest-reporters
68
70
  mocha
69
71
  pry-byebug
70
72
  rake
71
- rubocop
72
- session
73
+ rubocop-minitest
74
+ rubocop-shopify
73
75
  timecop
74
76
  webmock
75
77
 
@@ -2,50 +2,40 @@
2
2
 
3
3
  1. Check the Semantic Versioning page for info on how to version the new release: http://semver.org
4
4
 
5
- 2. Create a branch named `release_X_Y_Z` (replacing `X_Y_Z` with the intended release version)
5
+ 1. Make sure you're on the most recent `master`
6
+ ```
7
+ $ git checkout master
8
+ $ git pull
9
+ ```
10
+
11
+ 1. Create a branch named `release_X_Y_Z` (replacing `X_Y_Z` with the intended release version)
6
12
  ```
7
13
  $ git checkout -b release_X_Y_Z
8
14
  ```
9
15
 
10
- 3. Update the version of Shopify CLI in `lib/shopify-cli/version.rb`
16
+ 1. Update the version of Shopify CLI in `lib/shopify-cli/version.rb`
11
17
 
12
- 4. Add an entry for the new release to `CHANGELOG.md`
18
+ 1. Add an entry for the new release to `CHANGELOG.md`
13
19
 
14
- 5. Commit the changes with a commit message like "Packaging for release X.Y.Z"
20
+ 1. Commit the changes with a commit message like "Packaging for release X.Y.Z"
15
21
  ```
16
22
  $ git commit -am "Packaging for release vX.Y.Z"
17
23
  ```
18
24
 
19
- 6. Push out the changes
25
+ 1. Push out the changes
20
26
  ```
21
27
  $ git push -u origin release_X_Y_Z
22
28
  ```
23
29
 
24
- 7. Open a PR for the branch, get necessary approvals from code owners and merge into main branch. Note that the PR title will be the release note in Shipit, so make sure it mentions the release
30
+ 1. Open a PR for the branch, get necessary approvals from code owners and merge into main branch. Note that the PR title will be the release note in Shipit, so make sure it mentions the release
25
31
 
26
- 8. Deploy using Shipit
32
+ 1. Deploy using Shipit
27
33
 
28
- 9. On local machine and _AFTER_ gem has been published to https://rubygems.org, run
29
- ```
30
- $ rake package
31
- ```
32
- This will generate the `.deb`, `.rpm` and brew formula files, which will be located in `packaging/builds/X.Y.Z/`.
34
+ 1. Check the "Actions" tab to see if the _Create Release_ workflow is successful.
35
+ The workflow will automatically create a [release](https://github.com/Shopify/shopify-app-cli/releases) with the latest tag and `.deb`, `.rpm` assets attached.
36
+
37
+ 2. Check the `Shopify/homebrew-shopify` repository for new PR `shopify-cli {version}`
38
+ * rename PR to `Packaging for release of v{version} of shopify-cli`
39
+ * when PR is approved, merge into main branch
33
40
 
34
- 10. Clone the `Shopify/homebrew-shopify` repository (if not already cloned), and then
35
- * create a branch named `release_X_Y_Z_of_shopify-cli`
36
- * 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)
37
- * commit the change and create a PR on the [Shopify Homebrew repository](https://github.com/Shopify/homebrew-shopify)
38
- * when PR is approved, merge into main branch
39
41
 
40
- 11. Go to [releases](https://github.com/Shopify/shopify-app-cli/releases) page of `Shopify/shopify-app-cli` repo and create a new release:
41
- * use the tag created in step 8 by Shipit (should be "vX.Y.Z")
42
- * release title = "Version X.Y.Z"
43
- * description should be
44
- ```
45
- Release of version X.Y.Z of Shopify App CLI
46
-
47
- Please refer to [CHANGELOG](https://github.com/Shopify/shopify-app-cli/blob/master/CHANGELOG.md) for details.
48
- ```
49
- * upload the `.deb` and `.rpm` files from `packaging/builds/X.Y.Z/` (generated in step 9)
50
- * if it's a pre-release version, select the "This is a pre-release" checkbox
51
- * and click "Publish release".