GitLab API

GitlabTool

Actions1095

Npm_packages → getApiV4GroupsIdPackagesNpmPackage*packageNameDistTags

AI-generated

Summary

Retrieve the distribution tags for a specified npm package within a GitLab group using the GitLab API v4 endpoint.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab group containing the npm package.
  • package_name (required) — The exact name of the npm package for which to fetch distribution tags.
  • Skip Authentication — Optionally skip using authentication for this API request.
  • baseUrl — The GitLab instance base URL to target, defaulting to https://gitlab.com.
  • Method — HTTP method to use for the request, default is GET but others are available.

Output shape

A JSON object containing the distribution tags of the specified npm package in the group, typically keys are tag names and values are version strings.

The output is directly from the GET call to the path /api/v4/groups/{id}/-/packages/npm/-/package/*package_name/dist-tags. Authentication is required unless explicitly skipped. The operation assumes the presence of valid credentials when not skipping authentication. Errors from the API call will propagate as node execution failures.

Links

Discussion