Skip to content

ci: notify Slack when a prerelease publishes - #24

Merged
zanjonke merged 1 commit into
mainfrom
ci/prerelease-slack-success
Aug 28, 2026
Merged

ci: notify Slack when a prerelease publishes#24
zanjonke merged 1 commit into
mainfrom
ci/prerelease-slack-success

Conversation

@zanjonke

Copy link
Copy Markdown
Collaborator

The prerelease job only pinged Slack on failure — my call when I wrote it, on the reasoning that a message per merge would be noise. In practice it made a successful prerelease invisible: 1.0.21-next.4f1def5 published cleanly (run 33171274338) and the first anyone knew of it was checking npm by hand.

Silence is the wrong default here. A prerelease exists to be tried, and nobody tries what they aren't told about.

What lands in Slack now

Published:

plain-forge: prerelease 1.0.21-next.4f1def5 published to npm 📦. Try it with npx plain-forge@next install. latest is untouched at 1.0.20. From 4f1def5 by zanjonke.

Nothing to publish (a re-run of an already-published commit) gets its own line rather than borrowing the success one — it publishes nothing, and a message claiming otherwise would mislead anyone reading the channel.

Failure is unchanged.

Testing

actionlint clean, npm test 58/58. The rendered payload was checked as valid JSON — the message interpolates steps.pre.outputs.version and .base, both already emitted by the derive step.

Not testable before merge: the job only runs on push to main, so the next merge is the real test.

The prerelease job only pinged Slack on failure, on the reasoning that a
message per merge would be noise. In practice that made a successful
prerelease invisible: 1.0.21-next.4f1def5 published cleanly and the first
anyone knew of it was by checking npm by hand.

Silence is the wrong default here. A prerelease exists to be tried, and nobody
tries what they are not told about.

The success message names the version, gives the command to install it, states
that `latest` is untouched and at what, and links the commit and author.

A re-run of an already-published commit gets its own line rather than
borrowing the success one — it publishes nothing, and a message saying
otherwise would be a lie for anyone reading the channel.
@zanjonke
zanjonke requested a review from NejcS August 28, 2026 12:39

@NejcS NejcS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You probably did already but just make sure that the secret's there. Can we have secrets in a public repo anyway?

@zanjonke

Copy link
Copy Markdown
Collaborator Author

You probably did already but just make sure that the secret's there. Can we have secrets in a public repo anyway?

@NejcS we can. Those secrets arent visible to outsiders.

@zanjonke
zanjonke merged commit c19723e into main Aug 28, 2026
3 checks passed
@zanjonke
zanjonke deleted the ci/prerelease-slack-success branch August 28, 2026 13:45
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