@@ -33,7 +33,14 @@ def print_usage():
3333 print (" 4. Update Cargo.toml and Cargo.lock" )
3434 print (" 5. Optionally generate release notes" )
3535 print (" 6. Ask to commit, tag, and push the changes" )
36- print (" 7. Publish to crates.io" )
36+ print ("" )
37+ print ("GitHub Actions will then automatically:" )
38+ print (" - Build binaries for all platforms" )
39+ print (" - Create GitHub Release" )
40+ print (" - Publish to crates.io" )
41+ print (" - Publish to npm" )
42+ print (" - Update Homebrew tap" )
43+ print (" - Update AUR package" )
3744
3845def run_command (command : List [str ], capture_output : bool = False , check : bool = True ) -> subprocess .CompletedProcess :
3946 """Runs a shell command."""
@@ -181,7 +188,8 @@ def main() -> None:
181188 else :
182189 print (f" 2. Create tag: { YELLOW } git tag v{ new_version } { NC } " )
183190 print (f" 3. Push: { YELLOW } git push && git push origin v{ new_version } { NC } " )
184- print (f" 4. Publish: { YELLOW } cargo publish{ NC } " )
191+ print ("" )
192+ print ("GitHub Actions will then automatically publish to all platforms." )
185193 sys .exit (0 )
186194
187195 try :
@@ -208,18 +216,19 @@ def main() -> None:
208216 run_command (["git" , "push" , "origin" , f"v{ new_version } " ])
209217 print (f"{ GREEN } ✓{ NC } Pushed" )
210218
211- print ("" )
212- print (f"{ BLUE } Step 7:{ NC } Publishing to crates.io..." )
213- run_command (["cargo" , "publish" ])
214- print (f"{ GREEN } ✓{ NC } Published to crates.io" )
215-
216219 print ("" )
217220 print (f"{ GREEN } ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━{ NC } " )
218- print (f"{ GREEN } ✓ Version { new_version } released!{ NC } " )
221+ print (f"{ GREEN } ✓ Version { new_version } tagged and pushed!{ NC } " )
222+ print ("" )
223+ print ("GitHub Actions will now automatically:" )
224+ print (f" - Build binaries for all platforms" )
225+ print (f" - Create GitHub Release" )
226+ print (f" - Publish to crates.io" )
227+ print (f" - Publish to npm (@fresh-editor/fresh-editor)" )
228+ print (f" - Update Homebrew tap (sinelaw/fresh)" )
229+ print (f" - Update AUR package (fresh-editor)" )
219230 print ("" )
220- print ("The GitHub Actions workflow will automatically create a release from the tag." )
221- print ("Once the GitHub Release action completes, you will need to manually publish the npm package:" )
222- print (f" { YELLOW } npm publish https://github.com/sinelaw/fresh/releases/download/v{ new_version } /fresh-editor-npm-package.tar.gz{ NC } " )
231+ print (f"Monitor progress at: { BLUE } https://github.com/sinelaw/fresh/actions{ NC } " )
223232
224233 except subprocess .CalledProcessError as e :
225234 print (f"{ RED } An error occurred during git operations: { e } { NC } " )
0 commit comments