Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
# with auto-generated notes. Plain pushes that don't bump the version re-run this
# but skip (the tag already exists), so no accidental re-release.
#
# It can also be run by hand from the Actions tab, for when the push that should
# have released never got a run — see the note on the trigger below.
#
# Requires a repository secret named NPM_TOKEN: an npm automation token with
# publish rights to the @rousan scope.

Expand All @@ -14,6 +17,14 @@ name: Release
on:
push:
branches: [main]
# Manual trigger, because a push is not always available when you need one.
# 1.4.0 was merged to main during a GitHub Actions outage: no workflow ran for
# the merge, GitHub does not backfill missed runs, and with no dispatch trigger
# the only way to release was to push another commit to main purely to make
# something happen. Safe for the same reason the push path is — the job below
# skips when the tag for the current version already exists — so running this
# by hand can rescue a missed release but can never double-publish one.
workflow_dispatch:

permissions:
contents: write
Expand Down
Loading