Skip to content

Check the npm login before publishing - #4

Merged
IsaacBell merged 1 commit into
mainfrom
release/npm-login-check
Oct 5, 2026
Merged

IsaacBell merged 1 commit into
mainfrom
release/npm-login-check

Conversation

@IsaacBell

Copy link
Copy Markdown
Owner

npm answers a publish without a valid login with 404 Not Found - PUT, after mise run check has already run (about 3.5 minutes).

  • scripts/release.sh login: runs pnpm whoami; if that fails, runs pnpm login and checks again.
  • release.sh publish calls the same check before publishing.
  • mise run publish now runs the login check, then check, then publish, in that order (raw = true so pnpm login can prompt). check still runs on every publish.
  • docs/RELEASING.md updated.

Checked: shellcheck and shfmt clean; release.sh login exits 0 when logged in; no arguments prints the usage line and exits 2.

npm answers an upload without a valid login with 404, which only shows up
after the full check suite has run. The publish task now checks the login
first (pnpm whoami, then pnpm login if needed), then runs the checks.
@IsaacBell

Copy link
Copy Markdown
Owner Author

@codeant review

@IsaacBell IsaacBell left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

codeant missing

@IsaacBell
IsaacBell merged commit 88d9fc2 into main Oct 5, 2026
10 checks passed
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