Skip to content

fix(release): include all selected platform binaries in npm tarball#30

Merged
Abdulmuiz44 merged 1 commit into
mainfrom
fix/codra-npm-tarball-all-platforms
Jun 3, 2026
Merged

fix(release): include all selected platform binaries in npm tarball#30
Abdulmuiz44 merged 1 commit into
mainfrom
fix/codra-npm-tarball-all-platforms

Conversation

@Abdulmuiz44
Copy link
Copy Markdown
Collaborator

  • Fixes npm release packaging so tarballs include all selected platform binaries.
  • Strengthens pack:dry validation to require expected selected platforms.
  • Adds safe workflow listings for artifact/native binary debugging.
  • Keeps npm publishing disabled by default and guarded.
  • Does not publish to npm.

Copy link
Copy Markdown

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

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: f809f3213f

ℹ️ 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".

CODRA_ARTIFACTS_DIR: ${{ github.workspace }}/packages/codra-npm-cli/artifacts
CODRA_ALLOW_PARTIAL_BINARIES: ${{ needs.resolve-matrix.outputs.allow_partial }}
CODRA_EXPECT_PLATFORMS: ${{ needs.resolve-matrix.outputs.expect_all_pack == '1' && needs.resolve-matrix.outputs.expected_platforms || '' }}
CODRA_EXPECT_PLATFORMS: ${{ needs.resolve-matrix.outputs.expected_platforms }}
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 Keep partial dry runs from requiring every binary

When publish=false (the default), resolve-matrix sets allow_partial=1, but this now still passes every selected platform into CODRA_EXPECT_PLATFORMS. scripts/pack-dry-run.js treats that variable as a hard required list, so a dry run with any missing/undownloaded artifact fails validation even though the workflow input explicitly says dry runs allow partial binaries by default; the previous expect_all_pack guard avoided that by only requiring the full list for non-partial publish runs.

Useful? React with 👍 / 👎.

@Abdulmuiz44 Abdulmuiz44 merged commit b6018bd into main Jun 3, 2026
1 check 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