Skip to content

fix(ci): pass --ignore-scripts on the default publish command - #321

Merged
Shinrai merged 1 commit into
nextfrom
fix/publish-ignore-scripts
Sep 28, 2026
Merged

Shinrai merged 1 commit into
nextfrom
fix/publish-ignore-scripts

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

  • fix(ci): pass --ignore-scripts on the default publish command (c4dc1aa)

📦 Dependencies

No dependency updates

🔧 Other Changes

No other changes

👥 Contributors

The publish jobs run the generated command inside the downloaded
package-contents/ artifact: npm-pack output with no node_modules and no
lockfile. npm/pnpm/yarn publish still fire prepack/prepublishOnly/postpack
there, so a repo whose prepack runs a real build (e.g. tsup behind
"prepack": "npm run build") re-runs it in a directory that can't supply
its devDependencies and the publish dies with `tsup: not found` (exit
127) — CLDMV/vitest-runner v1.4.0 failed both registries this way.

build_command already ran in the build job before packing, so no
lifecycle script has work left at publish time. Add --ignore-scripts to
the default command for both npm and GitHub Packages, for every package
manager. A caller-supplied publish_command / github_packages_publish_command
is still used verbatim.

The command was built in three places — repo-detection (the one the
reusable workflow actually uses, core and satellites) plus the
publish-npm / publish-github-packages fallbacks — kept in sync by comment.
Move it into one shared buildPublishCommand() in
npm/utilities/publish-command with unit tests, so the flag can't drift
between them. Document the artifact publish contract and the custom
command caveat in docs/conventions/package-manager.md.

Fixes #320
@cldmv-bot cldmv-bot Bot added the ! fix → next v4 flow: fix contributor PR targeting the next integration branch label Sep 28, 2026
@Shinrai

Shinrai commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Resolves #320 — closed when this ships to the default branch.

@cldmv-bot cldmv-bot Bot added area: core Touches core library / runtime source code type: documentation Relates to docs, README updates, guides, or inline code comments labels Sep 28, 2026
@Shinrai
Shinrai merged commit 66a9b4d into next Sep 28, 2026
17 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/publish-ignore-scripts branch September 28, 2026 04:59
cldmv-bot Bot added a commit that referenced this pull request Sep 28, 2026
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
- #321
  - fix(ci): pass --ignore-scripts on the default publish command (c4dc1aa)

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
_No other changes_



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
cldmv-bot Bot added a commit that referenced this pull request Sep 28, 2026
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
- #323
  - fix(ci): re-arm release-merge on every check-producing workflow, not just CI (5fdce27)

- #321
  - fix(ci): pass --ignore-scripts on the default publish command (c4dc1aa)

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
_No other changes_



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: documentation Relates to docs, README updates, guides, or inline code comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant