Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto publishing and move default branch to latest #20

Merged
merged 2 commits into from Mar 26, 2024
Merged

Conversation

NorthernMan54
Copy link

Simple automated publishing for projects

Automatically publishes beta releases, when a change is pushed to a beta branch
For a latest/production release, workflow must be manually kicked off / started from Actions --> Build and Publish. ( This is by design to prevent accidental production releases.)
Latest release includes a github release

Release Workflow ( Beta --> Production )

1 - Determine what the target version will be for the final release and update the package.json version number ( ie 0.5.6)
2 - Create a new branch including the target release version ie beta-0.5.6
3 - Commit the updated package.json to the new beta branch. This will trigger a npm release with the beta tag, and npm version set to 0.5.6-beta.0.
4 - As updates are made to the beta branch, npm beta releases will be created.
5 - Once the release is complete, and ready for latest/production release, create a pull request to merge the changes into the latest branch.
6 - After reviews are complete, merge the pull request
7 - For the latest/production release, the workflow must be manually kicked off / started from Actions --> Build and Publish
8 - Delete beta branch

Activate auto publish

Update Build and Publish.yml
@NorthernMan54
Copy link
Author

@Supereg - I had already started the effort around this ( 3.6.x ), then saw that you had published 3.7.0 already. So the GitHub changes are a bit messed up.

The beta publishing is active, and production will be after merging

@NorthernMan54
Copy link
Author

Publish notes are here

https://github.com/homebridge/documentation/blob/latest/Repositories.md#supporting-packages

Thought about making my simple publishing a shared asset, and will tackle that at some point in the future.

Copy link
Member

@Supereg Supereg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tackling this.

@NorthernMan54 NorthernMan54 merged commit fed3c01 into latest Mar 26, 2024
12 checks passed
@NorthernMan54
Copy link
Author

NPM Release published - https://www.npmjs.com/package/bonjour-hap?activeTab=versions
GitHub Release published - https://github.com/homebridge/bonjour/releases

Humm, my script does not include a v in the GitHub version tag. Does it matter ?

@Supereg
Copy link
Member

Supereg commented Mar 26, 2024

Humm, my script does not include a v in the GitHub version tag. Does it matter ?

Makes it inconsistent with all of our other repos. I think there is no one relying on it currently, but could you fix it for the future to add v prefixes again?

@NorthernMan54 NorthernMan54 deleted the beta-3.7.1 branch March 28, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants