Repository navigation
ci(release): make npm publishing work, and re-runnable on its own - #223
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The npm job has never succeeded (0.3.1: no token; 0.3.2:
npm publish npm/secfoo-xread as a GitHub repo). This PR:NPM_PROD_TOKEN(falls back toNPM_TOKEN) and fails clearly when neither is set;./npm/...folders;optionalDependenciesto the release version, not the0.1.1placeholder;SHA256SUMS), and adds annpm-onlyinput to publish just npm for an existing release;secfoo-*artifacts to the release (the Docker build record slipped into v0.3.2).After merge: dispatch Release for
v0.3.2withnpm-only: true.🤖 Generated with Claude Code