GitLab API icon

GitLab API

Gitlab

Actions1062

Npm_packages → getApiV4ProjectsIdPackagesNpmPackage*packageNameDistTags

AI-generated

Summary

Retrieve the distribution tags for a specific NPM package in a GitLab project by providing the project ID or URL-encoded path and the package name.

Inputs

  • Id (required) — The ID or URL-encoded path of the GitLab project containing the NPM package.
  • Package_name (required) — The name of the NPM package for which to get distribution tags.
  • Skip Authentication — Optionally skip using GitLab API authentication (default is false).
  • baseUrl — Custom base URL of the GitLab instance (defaults to https://gitlab.com).
  • Method — HTTP method to use, default is GET (other methods available, but GET is typical for this operation).

Output shape

a JSON object representing the distribution tags of the specified NPM package within the project

The operation uses the GitLab API endpoint /api/v4/projects/{id}/packages/npm/-/package/*package_name/dist-tags. All inputs are required except authentication can be skipped. The response shape depends on the API's distribution tags format and is returned directly as the node's output.

Links

Discussion