Skip to content

ci: fix the red release run and the changelog order - #38

Merged
bjarn merged 2 commits into
mainfrom
fix/release-workflow
Oct 11, 2026
Merged

bjarn merged 2 commits into
mainfrom
fix/release-workflow

Conversation

@bjarn

@bjarn bjarn commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

What changed

The release run no longer opens a package version pull request

Every release since v2.7.0 has ended red at "Open package version pull request": GitHub Actions is not permitted to create pull requests in this repository. Publishing itself succeeded each time.

The step is removed, together with the npm version step and the pull-requests: write permission. It is not needed: the release job checks out the tag and sets the package version from it before it builds and publishes, so the published package and its User-Agent are correct whatever package.json on main says. main keeps a -dev version, as the Elixir SDK does.

The changelog job now only updates CHANGELOG.md, and its token permissions drop to contents: read. The push still uses the release bot's own token.

The changelog is in release order again

The changelog updater writes a new entry above the first level-2 heading. Older minor releases used level-1 headings, so the 3.0.0 and 2.8.0 entries landed below 2.5.0.

  • Every release heading is now level 2, newest first, under a # Changelog title. The next entry will be written at the top.
  • The entry text is unchanged: the set of non-heading lines is identical before and after.
  • The 2.8.0 heading's compare link now starts at v2.7.0 instead of v2.4.1.

Checks

  • actionlint on the workflows: no findings.
  • The workflow fix can only be proven by a release. I will check the run of the next release (3.1.0).

🤖 Generated with Claude Code

bjarn added 2 commits October 10, 2026 20:45
The release run failed on every release at "Open package version pull
request": GitHub Actions may not create pull requests in this
repository. The step is not needed. The release job sets the package
version from the tag before it builds and publishes, so the published
package and its User-Agent are correct whatever package.json on main
says.

The changelog job now only updates CHANGELOG.md.
The changelog updater writes a new entry above the first level-2
heading. Older minor releases used level-1 headings, so the 3.0.0 and
2.8.0 entries landed below 2.5.0. Every release heading is now level 2,
newest first, under a Changelog title. The entry text is unchanged; the
2.8.0 compare link now starts at v2.7.0.
@bjarn
bjarn requested a review from a team as a code owner October 10, 2026 18:46
@bjarn
bjarn merged commit 0cce899 into main Oct 11, 2026
4 checks passed
@bjarn
bjarn deleted the fix/release-workflow branch October 11, 2026 09:57
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