Skip to content

ci(release): make npm publishing work, and re-runnable on its own - #223

Merged
vsn411 merged 2 commits into
mainfrom
fix-release-npm
Nov 29, 2026
Merged

vsn411 merged 2 commits into
mainfrom
fix-release-npm

Conversation

@vsn411

@vsn411 vsn411 commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

The npm job has never succeeded (0.3.1: no token; 0.3.2: npm publish npm/secfoo-x read as a GitHub repo). This PR:

  • reads NPM_PROD_TOKEN (falls back to NPM_TOKEN) and fails clearly when neither is set;
  • publishes ./npm/... folders;
  • sets the meta-package's optionalDependencies to the release version, not the 0.1.1 placeholder;
  • skips packages already at the version, so re-runs finish a partial publish;
  • takes the binaries from the GitHub Release (checked against SHA256SUMS), and adds an npm-only input to publish just npm for an existing release;
  • attaches only secfoo-* artifacts to the release (the Docker build record slipped into v0.3.2).

After merge: dispatch Release for v0.3.2 with npm-only: true.

🤖 Generated with Claude Code

vsn411 and others added 2 commits November 29, 2026 12:10
The npm job had never succeeded:
- It read secrets.NPM_TOKEN; the repo secret is NPM_PROD_TOKEN (NPM_TOKEN
  is still accepted as a fallback), and it now fails with a clear error
  when neither is set.
- 'npm publish npm/secfoo-x' is read as the GitHub repo npm/secfoo-x, so
  npm tried to clone it over ssh. Publish './npm/secfoo-x'.
- The meta-package's optionalDependencies stayed at the 0.1.1 placeholder;
  set them to the release version before publishing it.
- Packages already at the version are skipped, so a re-run after a
  partial publish finishes the rest.

The job now takes the binaries (verified against SHA256SUMS) from the
GitHub Release, and a new npm-only input publishes just npm for a tag
whose release already exists, with no rebuild. The release job attaches
only secfoo-* artifacts (it had picked up the Docker build record).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vsn411
vsn411 merged commit d3f37ee into main Nov 29, 2026
10 checks passed
@vsn411
vsn411 deleted the fix-release-npm branch November 29, 2026 12:18
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