Skip to content

chore(ci): remove redundant publish job from release-please.yml - #396

Merged
abbaseya merged 1 commit into
mainfrom
chore/remove-redundant-release-please-publish-job
May 25, 2026
Merged

chore(ci): remove redundant publish job from release-please.yml#396
abbaseya merged 1 commit into
mainfrom
chore/remove-redundant-release-please-publish-job

Conversation

@abbaseya

Copy link
Copy Markdown
Collaborator

Summary

  • Removes the publish matrix job from .github/workflows/release-please.yml, which duplicated publish-package.yml and was the last consumer of the NPM_TOKEN secret.
  • release-please.yml now does only what its name suggests: manages versions, changelogs, tags, and GitHub Releases. The actual npm publish stays in publish-package.yml, which since fix(ci): switch publish-package.yml to npm Trusted Publishers (OIDC) #395 publishes via npm Trusted Publishers (OIDC).
  • Also drops the outputs block on the release job (releases_created / paths_released) — nothing consumes it anymore.

Why this is safe

Future merges to main will behave exactly as before:

  1. Push to main → release-please opens/updates the Release PR.
  2. Merge the Release PR → release-please cuts per-package tags (e.g. js-sdk-v4.4.3) and creates a GitHub Release for each.
  3. Each release: published event triggers publish-package.yml → OIDC publish to npm.

The only thing that goes away is a second, racing publish path that authenticated with NPM_TOKEN and could only publish 2 of the 13 packages (the same gap that motivated #395).

Follow-up (not in this PR)

  • Once this is merged and a Release PR cycle has run successfully end-to-end, the NPM_TOKEN repo secret can be deleted from repo settings.

Test plan

  • On merge: confirm no workflow regressions on the next push to main (release-please should still update its Release PR).
  • On the next merged Release PR: confirm tags + GitHub Releases are created, and publish-package.yml runs once per release and publishes successfully via OIDC.

🤖 Generated with Claude Code

The `publish` job duplicated `publish-package.yml` (which now publishes
via npm Trusted Publishers / OIDC after #395) and was the last consumer
of the `NPM_TOKEN` secret. `release-please.yml` now only manages
versions, changelogs, tags, and GitHub Releases; the `release:
published` event continues to trigger `publish-package.yml` for the
actual npm publish.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@sonarqubecloud

Copy link
Copy Markdown

@abbaseya
abbaseya requested a review from a team May 25, 2026 17:02
@abbaseya abbaseya self-assigned this May 25, 2026
@abbaseya
abbaseya merged commit d78455e into main May 25, 2026
6 checks passed
@abbaseya
abbaseya deleted the chore/remove-redundant-release-please-publish-job branch May 25, 2026 17:02
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