Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

fix(ci): pin npm to 11.x in publish workflows (#2538)

Andrew Mikofalvyd5e754f4ce72
diff --git a/.changeset/fix-npm12-publish-pin.md b/.changeset/fix-npm12-publish-pin.md
new file mode 100644
index 000000000..9ffbf8e98
--- /dev/null
+++ b/.changeset/fix-npm12-publish-pin.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Restore npm publishing for the beta channel. npm 12.0.0 ships without the bundled `sigstore` module its publish-with-provenance path requires, which broke the npm uploads for `0.28.1-beta.0` and `0.28.1-beta.1` (their GitHub releases and macOS builds shipped normally). Release CI now pins npm to the 11.x line, and this release carries all changes from the two npm-skipped versions.
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 3c60cba6f..a7ab17a79 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -147,9 +147,15 @@ jobs:
node-version: "24"
registry-url: "https://registry.npmjs.org"
+ # Pinned to the 11.x line, NOT npm@latest: npm 12.0.0's published
+ # tarball omits the top-level bundled `sigstore` module that
+ # libnpmpublish requires, so publishing with provenance dies with
+ # MODULE_NOT_FOUND the moment `latest` serves 12.x (broke the
+ # 0.28.1-beta.0/.1 cuts on 2026-07-08). Bump the pin only after
+ # verifying `npm publish` with NPM_CONFIG_PROVENANCE works on it.
- name: Ensure npm 11.5.1+ for OIDC + provenance
run: |
- npm install -g npm@latest
+ npm install -g npm@11
echo "npm $(npm --version)"
- name: Install