Skip to content

ci: revert publish env name to npm#169

Closed
MuncleUscles wants to merge 1 commit into
mainfrom
ci/revert-publish-env-name
Closed

ci: revert publish env name to npm#169
MuncleUscles wants to merge 1 commit into
mainfrom
ci/revert-publish-env-name

Conversation

@MuncleUscles
Copy link
Copy Markdown
Member

Summary

Reverts the npmPublish rename from #168. The release on main failed at env protection because the custom branch policy on Publish had a typo (mian instead of main), so the workflow never reached npm publish — but the npm trusted publisher config for this package likely pins the environment claim to npm (same root cause as in genlayer-cli). Reverting the env name in the workflow keeps OIDC auth working once the env is recreated.

Pre-merge checklist (GitHub side)

  • Recreate npm environment with:
    • Variable PUBLISH_CI_APP_CLIENT_ID = same value as currently in Publish
    • Secret PUBLISH_CI_APP_KEY = same value as currently in Publish
    • Deployment branch policy: main (the existing Publish env has a mian typo — do not copy it)
    • Required reviewers as desired
  • Delete the Publish environment after the new npm env is in place

Test plan

  • After merge, push a fix: or feat: commit to main (or trigger the workflow manually) and confirm npm publish succeeds

Reverts the `npm` → `Publish` rename from #168. The release workflow
on `main` failed at the env protection step (custom branch policy
typo `mian` blocked deployment), so we never reached `npm publish`,
but the npm trusted publisher config for this package likely pins
the `environment` claim to `npm` (same as cli) — renaming the env
would also have broken OIDC auth.

Reverting the env name in the workflow restores the previous claim
shape. The recreated `npm` environment in this repo must hold
`PUBLISH_CI_APP_CLIENT_ID` (variable) and `PUBLISH_CI_APP_KEY`
(secret) for the App-token swap from #168 to keep working, and the
deployment branch policy must be `main` (not `mian`).
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 6, 2026

Warning

Rate limit exceeded

@MuncleUscles has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 59 minutes and 54 seconds before requesting another review.

To continue reviewing without waiting, purchase usage credits in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6f0cf1d1-a590-4f4b-ad70-9867328e89be

📥 Commits

Reviewing files that changed from the base of the PR and between ae4805e and 984dff5.

📒 Files selected for processing (1)
  • .github/workflows/publish.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/revert-publish-env-name

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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