Skip to content

ci: fix skipped npm publish (manifest output is releases_created) - #40

Merged
maxscharwath merged 1 commit into
mainfrom
ci/fix-release-created-output
Jun 24, 2026
Merged

ci: fix skipped npm publish (manifest output is releases_created)#40
maxscharwath merged 1 commit into
mainfrom
ci/fix-release-created-output

Conversation

@maxscharwath

Copy link
Copy Markdown
Contributor

What happened

When PR #38 (release 0.3.0) merged, the Release Please run created clay-v0.3.0 on GitHub but the chained publish job was skipped — so @brika/clay was never pushed to npm (still 0.2.0).

Cause

This repo runs release-please in manifest mode (config-file + manifest-file). In that mode the action exposes releases_created (plural) and packages/clay--release_creatednot the singular release_created that #39 referenced. release_created was empty, so if: ... release_created == 'true' was false and the publish was skipped.

Fix

Use steps.release.outputs.releases_created for the job output. One line.

Still required for the auto-publish to authenticate

npm trusted publishing matches the calling workflow filename, which for this chained design is release-please.yml. Add release-please.yml as a Trusted Publisher for @brika/clay on npmjs.com (keep publish-npm.yml for the manual fallback). See #39 for details.

0.3.0 right now

The 0.3.0 GitHub release exists but isn't on npm — publish it via a manual publish-npm workflow_dispatch (that path uses publish-npm.yml as the entry workflow, which is already a trusted publisher).

…runs

In manifest mode release-please-action exposes `releases_created` (plural); the
singular `release_created` is empty, so the chained publish job was skipped on the
0.3.0 release (release tagged on GitHub, never published to npm).
@sonarqubecloud

Copy link
Copy Markdown

@maxscharwath
maxscharwath merged commit 872ab5b into main Jun 24, 2026
4 checks passed
@maxscharwath
maxscharwath deleted the ci/fix-release-created-output branch June 24, 2026 19:06
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