amplify-category-api icon indicating copy to clipboard operation
amplify-category-api copied to clipboard

ci: add deprecate release workflow

Open dpilch opened this issue 1 year ago • 0 comments

Description of changes

Usage

yarn trigger-deprecate-release <deprecation-message> <release-commit-hash> <no-dry-run>
  • deprecation-message (required): message used on npm deprecate
  • release-commit-hash (required): Release commit hash the version to deprecate https://docs.npmjs.com/cli/v8/commands/npm-deprecate
  • no-dry-run: When false the deprecation workflow will run against the verdaccio local registry (defaults to false)

Example:

yarn trigger-deprecate-release "contains regression" 143a2665877e3d55592e38e33f7b6bb55df90b51 false

This will deprecate all packages that were bumped in https://github.com/aws-amplify/amplify-category-api/commit/143a2665877e3d55592e38e33f7b6bb55df90b51. If the deprecated version is also the latest, the workflow will also set the latest tag for all of these packages to the previous version.

50 | Moving dist tag "latest" to release tag @aws-amplify/[email protected]
51 | +latest: @aws-amplify/[email protected]
52 | Done!
53 |  
54 | Moving dist tag "latest" to release tag @aws-amplify/[email protected]
55 | +latest: @aws-amplify/[email protected]
56 | Done!
57 |  
58 | Moving dist tag "latest" to release tag @aws-amplify/[email protected]
59 | +latest: @aws-amplify/[email protected]
60 | Done!
61 |  
62 | Moving dist tag "latest" to release tag @aws-amplify/[email protected]
63 | +latest: @aws-amplify/[email protected]
64 | Done!
65 |  
66 | Moving dist tag "latest" to release tag @aws-amplify/[email protected]
67 | +latest: @aws-amplify/[email protected]
68 | Done!
69 |  
70 | Moving dist tag "latest" to release tag @aws-amplify/[email protected]
71 | +latest: @aws-amplify/[email protected]
72 | Done!
73 |  
74 | Moving dist tag "latest" to release tag @aws-amplify/[email protected]
75 | +latest: @aws-amplify/[email protected]
76 | Done!
77 |  
78 | Moving dist tag "latest" to release tag @aws-amplify/[email protected]
79 | +latest: @aws-amplify/[email protected]
80 | Done!
81 |  
82 | Moving dist tag "latest" to release tag @aws-amplify/[email protected]
83 | +latest: @aws-amplify/[email protected]
84 | Done!
85 |  
86 | Moving dist tag "latest" to release tag @aws-amplify/[email protected]
87 | +latest: @aws-amplify/[email protected]
88 | Done!
89 |  
90 | Moving dist tag "latest" to release tag @aws-amplify/[email protected]
91 | +latest: @aws-amplify/[email protected]
92 | Done!
93 |  
94 | Moving dist tag "latest" to release tag @aws-amplify/[email protected]
95 | +latest: @aws-amplify/[email protected]
96 | Done!
97 |  
98 | Moving dist tag "latest" to release tag @aws-amplify/[email protected]
99 | +latest: @aws-amplify/[email protected]
100 | Done!
101 |  
102 | Moving dist tag "latest" to release tag @aws-amplify/[email protected]
103 | +latest: @aws-amplify/[email protected]
104 | Done!
105 |  
106 | Deprecating package version @aws-amplify/[email protected]
107 | Done!
108 |  
109 | Deprecating package version @aws-amplify/[email protected]
110 | Done!
111 |  
112 | Deprecating package version @aws-amplify/[email protected]
113 | Done!
114 |  
115 | Deprecating package version @aws-amplify/[email protected]
116 | Done!
117 |  
118 | Deprecating package version @aws-amplify/[email protected]
119 | Done!
120 |  
121 | Deprecating package version @aws-amplify/[email protected]
122 | Done!
123 |  
124 | Deprecating package version @aws-amplify/[email protected]
125 | Done!
126 |  
127 | Deprecating package version @aws-amplify/[email protected]
128 | Done!
129 |  
130 | Deprecating package version @aws-amplify/[email protected]
131 | Done!
132 |  
133 | Deprecating package version @aws-amplify/[email protected]
134 | Done!
135 |  
136 | Deprecating package version @aws-amplify/[email protected]
137 | Done!
138 |  
139 | Deprecating package version @aws-amplify/[email protected]
140 | Done!
141 |  
142 | Deprecating package version @aws-amplify/[email protected]
143 | Done!
144 |  
145 | Deprecating package version @aws-amplify/[email protected]
146 | Done!
CDK / CloudFormation Parameters Changed

N/A

Issue #, if available

N/A

Description of how you validated changes

I ran the workflow against the CodeBuild project in my personal account. I only tested against the verdaccio local registry so the production deprecation is not fully tested.

Checklist

  • [x] PR description included

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

dpilch avatar May 07 '24 17:05 dpilch