Skip to content

ci: create the publish tag and release after npm publish - #69

Open
vosechu wants to merge 3 commits into
masterfrom
ci/publish-before-tag
Open

vosechu wants to merge 3 commits into
masterfrom
ci/publish-before-tag

Conversation

@vosechu

@vosechu vosechu commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor
  • I, the human author, have fully read and comprehended this code. Until this is checked, please don't waste time reviewing.

Moves Create tag and release after Publish to npm in publish.yml. Run 43049548737 created v0.1.0, then npm rejected the publish (E403), leaving a tag for a version that doesn't exist.

Also updates two stale CLAUDE.md rules. One allowed gh pr merge --admin under a GHE-only waiver; the public ruleset requires one approval, no bypass. The other said execute_nrql_query rejects valid NRQL; it no longer does.

Concern: if the tag step fails after a successful publish, tag by hand; a re-run would fail at publish.

Test plan

  • actionlint is clean on publish.yml
  • prettier --check passes on publish.yml and CLAUDE.md
  • Ruleset checked with gh api repos/newrelic-experimental/query-bridge/rulesets/1073291: 1 required approval, no bypass actors
  • NRQL bullet text matches c17dcf3 on docs/timewrap-gap-walker-notes; I did not re-run the NRQL checks it cites
  • Step order end to end: this PR's validate job only packs, so the first real publish run is the test

🤖 Generated with Claude Code

vosechu and others added 3 commits November 11, 2026 10:39
The first publish run created v0.1.0 and its GitHub release, then npm
rejected the publish with E403 (trusted publisher not matching). That
left a tag and release for a version that is not on npm, and a retry
would fail at git tag until both were deleted by hand.

Move the tag and release step after the publish step so a rejected
publish leaves nothing behind.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The rule said a user-approved PR could be merged solo with gh pr merge --admin under SLCREV-1164.
That waiver covered only the archived GHE repo. The public repo's Branch Protection ruleset requires
one approving review with no bypass actors, so an agent following the old rule would try a merge
that is refused.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The bullet still said execute_nrql_query falsely rejects 12 functions and PREDICT. Those run
correctly through it now, so an agent following the old text would mark valid NRQL unsupported
or route around the tool. Same wording as the fix already made on docs/timewrap-gap-walker-notes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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