npm lookups read registry errors as not published

Đang mở
#132 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@tylrcc đang làm issue này rồi.

Từ ngày 11/11/2026.

  • #139 của @tylrcc — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
node.js, typescript
Lĩnh vực
backend, release

Hướng nghiên cứu

Read src/lib/registry.ts around isOnNpm and src/prerelease/prerelease-version.ts around fetchDevVersions; compare both with nfRegistryVersions in the same prerelease file. Check existing tests for these lookups and confirm they distinguish 404 from other non-2xx responses. Done means only 404 is treated as absent and other registry errors fail the step.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug good first issue
Issue description

Both npm lookups read an error as "nothing there":

During an npm outage or a rate limit (traced, not run):

  • a release re-run tries to publish a version that is already out and fails;
  • an alpha whose committed version isn't on this branch's prefix restarts at .0, and the publish fails on a taken version;
  • a beta publishes and silently deprecates nothing.

nfRegistryVersions in the same file already does it right: [] on 404 only, and an error on any other status.

Expected: only a 404 means "not published"; any other status fails the step.

Found by a read-only audit of main at 435a16b (first done at 046494f; no src/ file changed in between), report audits/actions-2026-11-11.md in the workspace repo.

Code sample
export const isOnNpm = async (name: string, version: string): Promise<boolean> =>
  (await fetch(`https://registry.npmjs.org/${name}/${version}`)).ok;
Versions
  • @nanoforge-dev/actions 3.3.0 (main at 435a16b)
  • Bun 1.3.14
Issue priority

Low (slightly annoying)

I have tested this issue on a development release

435a16b

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
15 giờ 51 phút
Pull request đã merge (30 ngày)
21

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NanoForge-dev/actions

Tất cả issue của NanoForge-dev/actions

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.