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

Release helper script and CI #452

Merged
merged 12 commits into from
Dec 9, 2022
Merged

Release helper script and CI #452

merged 12 commits into from
Dec 9, 2022

Conversation

Half-Shot
Copy link
Contributor

This should help people other than me release changes for matrix-appservice-bridge.

This comes in 3 parts:

  • The release.sh script replaces the old changelog-release.sh script. It will now generate a draft changelog, check you are happy with it, then create the correct commits, tags and push the right things.
  • A CI that takes the incoming changelog and creates a release automatically, you are then invited to check the draft to make sure it is sane.
  • Once that's complete, there is a final CI job to build the npm package and publish it.

fix ref name

change the command

fetch depth

Try checking out the tag

Remove tag check

Releasey bits

Tag file

Try fetching

all tags

Ask it very nicely to fetch tags

needs a force to make it happy

Finally get tags working

fix fails

Simpify

Correct param

Fix name

s/file/path

Update release script

Test publish workflow

forgot to checkout

test publication

Use npm publish

Use proper publish script
echo "Generated tag $TAG"

echo "Pushing to origin"
git push origin $TAG
Copy link
Contributor Author

@Half-Shot Half-Shot Nov 30, 2022

Choose a reason for hiding this comment

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

This obviously doesn't allow us to do a PR for releases, which may not be desirable. Thoughts on how this could be re-architected to support that are welcome. Alternatively we can forgo the PR.

Copy link
Member

Choose a reason for hiding this comment

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

PRs for releases can be a bit of a pain, and are probably redundant since we usually discuss release plans internally before publishing anything. So I'm in favour of forgoing.

Copy link
Member

@AndrewFerr AndrewFerr left a comment

Choose a reason for hiding this comment

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

LGTM

echo "Generated tag $TAG"

echo "Pushing to origin"
git push origin $TAG
Copy link
Member

Choose a reason for hiding this comment

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

PRs for releases can be a bit of a pain, and are probably redundant since we usually discuss release plans internally before publishing anything. So I'm in favour of forgoing.

@Half-Shot Half-Shot merged commit a6be350 into develop Dec 9, 2022
@Half-Shot Half-Shot deleted the hs/release-helper branch May 2, 2023 16:06
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.

2 participants