Skip to content

ci: restore workflow hardening, prep clean 0.1.5 - #18

Merged
TimG1804 merged 2 commits into
mainfrom
fix/release-workflow-consistency
Aug 20, 2026
Merged

TimG1804 merged 2 commits into
mainfrom
fix/release-workflow-consistency

Conversation

@TimG1804

Copy link
Copy Markdown
Collaborator

Prep for a clean 0.1.5. Refs #4, #16.

Workflow. The OIDC switch in b848109 was made against an older version of the file, so it also reverted the hardening from #12 — SHA pins, permissions: {}, --ignore-scripts and Node 24 all went back. Restored here; trusted publishing itself is untouched and works (0.1.2 was published by npm-oidc-no-reply@github.com).

The npm install -g npm@^11.5 step stays even though Node 24 ships npm 11.9. Trusted publishing needs >= 11.5.1 and a release should not depend on what the runner happens to ship.

Left on the v4 pins on purpose rather than taking the bumps from #13/#14/#15 — one thing at a time, with two failed releases behind us. Those can go in right after 0.1.5 is out.

allowUpdates: true on the release step. v0.1.4 failed with 422 already_exists because a release had been created by hand for the tag; the publish had already succeeded at that point. Without this it happens again.

npm pkg fix on the repository url — npm publish warned it had auto-corrected it.

Checked: npm ci --ignore-scripts && npm run build on a clean tree.

After merge: drop the tags and releases for v.0.1.3 and v0.1.4 (neither exists on npm), add release notes for v0.1.2, then npm version 0.1.5 -m "chore: release %s" and push the tag.

The OIDC switch was made against an older version of the file and
dropped the SHA pins, permissions default, --ignore-scripts and Node 24
along with it. Trusted publishing itself is unchanged.

allowUpdates stops a release created by hand for the tag from failing
the job with a 422, which is what happened on v0.1.4.

Refs #4, #16
npm publish warned it had auto-corrected this. Result of npm pkg fix.

Refs #9
@TimG1804
TimG1804 merged commit 5556bbe into main Aug 20, 2026
@TimG1804
TimG1804 deleted the fix/release-workflow-consistency branch August 20, 2026 13:16
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.

1 participant