Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25690

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 18.0.0
    • None
    • Unknown

    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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: