Skip to content

Release 0.2.1: restore npm identity, fix package validation, publish via OIDC - #4

Merged
gitdamnit merged 4 commits into
masterfrom
chore/npm-release-prep-20261028
Oct 30, 2026
Merged

gitdamnit merged 4 commits into
masterfrom
chore/npm-release-prep-20261028

Conversation

@gitdamnit

@gitdamnit gitdamnit commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • Restores the published npm package identity. package.json is again @gitdamnit/opencode-stranger-danger (the name public on npm since 0.1.0). The earlier rename to @gitdamnit/stranger-danger pointed at a package that does not exist, making 0.2.0 uninstallable from the registry.
  • Fixes the failing package validation. scripts/verify-package.mjs hardcoded @gitdamnit/stranger-danger in its import and directory checks, so it broke the moment the name changed. It now derives the name from package.json.
  • Bumps to 0.2.1. v0.2.0 already tags the misnamed commit and has a public GitHub release, so a patch release is used instead of rewriting the tag.
  • Manual OIDC publishing. publish.yml runs only on workflow_dispatch, checks out and verifies the release tag, and publishes through npm Trusted Publishing (supersedes Prepare manual npm Trusted Publishing with OIDC #3).
  • Corrects every documented package reference and records D-0007.

Verification

  • npm run typecheck, npm run lint, npm test (322/322), npm run verify:package all pass locally.
  • npm pack --dry-run yields 96 files with the expected dist/, root index.js, bin, and rule file.
  • prodoc validate and prodoc check pass.

Not published yet

Merging this does not publish anything. npm Trusted Publishing must be configured for this repository and publish.yml first, then the workflow is dispatched for v0.2.1.

The 0.2.0 release commit renamed the package to @gitdamnit/stranger-danger,
a name that has never existed on npm, so no 0.2.x release was installable
from the registry. `npm run verify:package` also hardcoded that same name and
therefore failed its packed-artifact check.

- restore @gitdamnit/opencode-stranger-danger as the package name and
  release the fixes as 0.2.1 (v0.2.0 already points at the misnamed commit)
- derive the package name from package.json in scripts/verify-package.mjs
- switch publish.yml to manual workflow_dispatch + npm Trusted Publishing
- correct every documented package reference and record D-0007
@gitdamnit
gitdamnit marked this pull request as ready for review October 30, 2026 00:04
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T00:07:02.209505Z 63ff884 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gitdamnit gitdamnit changed the title Prepare Stranger Danger 0.2.0 npm update safely Release 0.2.1: restore npm identity, fix package validation, publish via OIDC Oct 30, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 63ff88461f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread package.json
"name": "@gitdamnit/stranger-danger",
"version": "0.2.0",
"name": "@gitdamnit/opencode-stranger-danger",
"version": "0.2.1",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update the runtime version alongside the package version

The package is now version 0.2.1, but src/shared/version.ts still exports "0.2.0" and the help banner in src/cli/args.ts also hardcodes 0.2.0. Consequently, the new release still identifies itself as 0.2.0 in sd version, CLI help, and the plugin's status tool, making it impossible to distinguish the packaging fix through those interfaces. Running the checked-in CLI confirms strangerDanger v0.2.0. Update these runtime strings with the release bump; the package verifier currently accepts any semver-shaped version output and will not catch the mismatch.

Useful? React with 👍 / 👎.

@gitdamnit
gitdamnit merged commit 177810a into master Oct 30, 2026
1 check passed
@gitdamnit
gitdamnit deleted the chore/npm-release-prep-20261028 branch October 30, 2026 00:07
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