Skip to content

Conversation

zimeg
Copy link
Member

@zimeg zimeg commented May 6, 2025

Summary

This PR adds the steps taken in the most recent release to the MAINTAINERS_GUIDE.md for future reference 📚 ✨

Preview

https://github.com/slackapi/slack-github-action/blob/zimeg-chore-release-notes/.github/maintainers_guide.md#releasing

Requirements

@zimeg zimeg added this to the 2.x milestone May 6, 2025
@zimeg zimeg self-assigned this May 6, 2025
@zimeg zimeg added the docs Improvements or additions to documentation label May 6, 2025
Copy link

codecov bot commented May 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.86%. Comparing base (b6f4640) to head (40cd59e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #439   +/-   ##
=======================================
  Coverage   99.86%   99.86%           
=======================================
  Files           7        7           
  Lines         722      722           
=======================================
  Hits          721      721           
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@hello-ashleyintech hello-ashleyintech left a comment

Choose a reason for hiding this comment

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

LGTM! 🙌 left some small bits of feedback, let me know your thoughts!

$ npm version <major|minor|patch> --no-git-tag-version
```

4. Update all references to versions in documentation and the workflow files in `example-workflows/` to the latest version:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
4. Update all references to versions in documentation and the workflow files in `example-workflows/` to the latest version:
4. Update all references to the previous version(s) in documentation and the workflow files in `example-workflows/` to the latest version:

Copy link
Member

Choose a reason for hiding this comment

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

idea: Might be a cool place to have a postversion script that updates all examples with the new version. That way, running npm version will automatically update the examples.

Copy link
Member Author

Choose a reason for hiding this comment

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

@mwbrooks Thanks for calling out the power of script hooks! 🪄 🪝

This step was updated in 4f5e2f7 to use the version script:

These scripts have access to the new version in package.json (so they can incorporate it into file headers in generated files for example).

And now appears as following with the new 7 step release process:

release

Copy link
Member

Choose a reason for hiding this comment

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

Wow @zimeg I wish there was an :amaze: 😲 reaction for this!

Comment on lines +45 to +47
```sh
$ npm version <major|minor|patch> --no-git-tag-version
```
Copy link
Member

Choose a reason for hiding this comment

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

note: TIL

$ npm version <major|minor|patch> --no-git-tag-version
```

4. Update all references to versions in documentation and the workflow files in `example-workflows/` to the latest version:
Copy link
Member

Choose a reason for hiding this comment

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

idea: Might be a cool place to have a postversion script that updates all examples with the new version. That way, running npm version will automatically update the examples.

Co-authored-by: Ashley <12901850+hello-ashleyintech@users.noreply.github.com>
Co-authored-by: Michael Brooks <michael@michaelbrooks.ca>
package.json Outdated
@@ -10,7 +10,8 @@
"dev": "act public --eventpath .github/resources/.actions/event.json --secret-file .github/resources/.env --platform ubuntu-latest=node:20-buster --container-architecture linux/amd64",
"lint:fix": "biome check --write",
"lint": "biome check",
"test": "c8 mocha test/*.spec.js"
"test": "c8 mocha test/*.spec.js",
"version": "TAG=\"v$(npm pkg get version | jq -r)\" && grep -rl 'slackapi/slack-github-action@v' ./docs ./example-workflows | xargs sed -i \"s|slackapi/slack-github-action@v.*|slackapi/slack-github-action@${TAG}|g\""
Copy link
Member

Choose a reason for hiding this comment

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

question: Do we want to use version or postversion? The postversion would run this after npm's default version command.

Copy link
Member Author

Choose a reason for hiding this comment

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

@mwbrooks Thanks for pointing this out 👁️‍🗨️ ✨

I was noticing similar behavior with both options, but agree postversion can be more clear that these changes are meant to happen after the packaging updates otherwise.

Avoiding automatic commits and tags for now seems best too - this is stressful magic I find - which could be added to these hooks also at a later point! 🎁

Co-authored-by: Michael Brooks <michael@michaelbrooks.ca>
@zimeg
Copy link
Member Author

zimeg commented Jun 13, 2025

📣 I plan to soon merge this but am also wanting to attempt an actual release process with these steps to find perhaps mishaps before we merge this!

@zimeg
Copy link
Member Author

zimeg commented Jul 10, 2025

🤖 The release workflow of #457 appears to make the correct tags and branches and these instructions worked well for v2.1.1!

@hello-ashleyintech @WilliamBergamin @mwbrooks Thank y'all all so much for the kind reviews and suggestions 🎁

I will now merge this PR but am interested in making the release process even more automatic later.

@zimeg
Copy link
Member Author

zimeg commented Jul 10, 2025

🗣️ It would've been so rude to omit the step of rebuilding documentation from #467 - 40cd59e. Now I will merge.

@zimeg zimeg merged commit b4ca8e7 into main Jul 10, 2025
8 checks passed
@zimeg zimeg deleted the zimeg-chore-release-notes branch July 10, 2025 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants