Branch: refs/heads/XWIKI-24828 Home: https://github.com/xwiki/xwiki-platform Commit: 4a563b673b7db5daf59bf4e9d5542024d11c9d24 https://github.com/xwiki/xwiki-platform/commit/4a563b673b7db5daf59bf4e9d5542... Author: Manuel Leduc <[email protected]> Date: 2026-09-08 (Tue, 08 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-node/src/main/node/package.json M xwiki-platform-core/xwiki-platform-node/src/main/node/scripts/deploy.js A xwiki-platform-core/xwiki-platform-node/src/main/node/scripts/lib/registry.js A xwiki-platform-core/xwiki-platform-node/src/main/node/scripts/lib/registry.spec.js A xwiki-platform-core/xwiki-platform-node/src/main/node/scripts/lib/tags.js A xwiki-platform-core/xwiki-platform-node/src/main/node/scripts/lib/tags.spec.js A xwiki-platform-core/xwiki-platform-node/src/main/node/scripts/lib/version.js A xwiki-platform-core/xwiki-platform-node/src/main/node/scripts/lib/version.spec.js A xwiki-platform-core/xwiki-platform-node/src/main/node/vitest.config.js Log Message: ----------- XWIKI-24828: npm packages are published with the latest dist-tag even when released from a maintenance branch * Publish a release under a dist-tag of its own instead of npm's default "latest": "rc" for a release candidate, "stable-<major>.<minor>.x" for a final version * Move the "latest" dist-tag to the published version afterwards, and only for the packages where it is missing or points to an older version, so that a release from a maintenance branch or a release candidate can no longer make "latest" go backwards * Report the packages whose dist-tag could not be updated, with the command to repair each of them, without failing the build since the packages are published at that point * Exclude the private packages from the published set, which "pnpm publish" already skips * Extract the version, dist-tag and registry logic into scripts/lib and cover it with unit tests, run by the "test:unit" script To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications