Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab GitLab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 38,038
    • Issues 38,038
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1,345
    • Merge requests 1,345
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #258835

Closed
Open
Created Sep 29, 2020 by Tim Rizzi@trizziDeveloper

Add job and deploy token authentication to npm dist-tag routes.

Problem to solve

As discussed in #220985 (comment 420787332)

It looks like the npm dist tag routes simply don't support job tokens or deploy tokens (only the install and publish routes do).

This prevents you from being able to add tags using GitLab CI. Which is a major blocker for many in the Community.

Intended users

  • Sasha (Software Developer)

User experience goal

Users of GitLab's NPM registry should be able to use npm (the command-line tool) exactly the same way as they do when interacting with packages on https://www.npmjs.com/.

Proposal

Add job token and deploy token auth to npm dist-tag routes.

Workaround available

A workaround has been identified here #258835 (comment 511212800)

A workaround, that worked for us was to use npm publish --tag directly without the explicit call to npm dist-tag.

Documentation

  • Add CI examples to https://docs.gitlab.com/ee/user/packages/npm_registry/#npm-distribution-tags
  • Remove note added in !43791 (merged)

What does success look like, and how can we measure that?

Users of the GitLab NPM registry can tag their dependencies using GItLab CI.

Metrics

  • Measure npm dist-tag routes via snowplow, so that we can understand how often this route is used on GitLab.com.

Links / references

  • #220985 (comment 420868893)
  • https://docs.gitlab.com/ee/user/packages/npm_registry/#npm-distribution-tags
Edited Feb 17, 2021 by Tim Rizzi
Assignee
Assign to
Backlog
Milestone
Backlog
Assign milestone
Time tracking