This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-a931be0e-8960-4546-845a-a2033ec02e73 XWIKI-25690 Open

npm SNAPSHOT packages of every deployed branch share the snapshot dist-tag

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-dba7f4ad-87a6-4c44-85c1-c5fbd266ee30 Manuel Leduc created this issue on 06/Nov/26 17:04
 
Summary: npm SNAPSHOT packages of every deployed branch share the snapshot dist-tag
Issue Type: cid:jira-generated-image-avatar-a931be0e-8960-4546-845a-a2033ec02e73 Bug
Affects Versions: 18.0.0
Assignee: Unassigned
Components: Development Issues only
Created: 06/Nov/26 17:04
Priority: cid:jira-generated-image-static-major-0fea5d8e-05bd-4b29-a1d5-2217ec93e155 Major
Reporter: Manuel Leduc
Description:

CI publishes a SNAPSHOT of the @xwiki/platform- npm packages to https://nexus-snapshots.xwiki.org/repository/npmhosted/ on every deploy build. A feature-deploy- branch is deployed too, with a version that names the branch (e.g. 18.10.0-mybranch-SNAPSHOT), and its packages are published under the same snapshot dist-tag as master.

As a result, after a build of a feature-deploy- branch, npm install @xwiki/platform-api@snapshot (or any range resolved through the snapshot dist-tag) returns the feature branch build instead of the latest master build, until the next master build moves the dist-tag back. The same happens between master and the stable- branches: the last branch to build owns the snapshot dist-tag.

Expected

The snapshot dist-tag only follows master. Builds of other branches use dist-tags of their own (e.g. one per branch), so that a consumer picks a branch explicitly.