GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves the distribution tags of a specific npm package within a GitLab group. It is useful for developers and DevOps teams who want to programmatically access metadata about npm packages hosted in GitLab groups, such as version tags associated with the package. For example, it can be used to check the latest version tags of a package before deployment or integration.

Use Case Examples

  1. Fetch the dist-tags of an npm package named 'my-package' in a GitLab group with ID '12345' to verify available versions.
  2. Automate monitoring of package version tags in a CI/CD pipeline to trigger builds based on new releases.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request (boolean). Defaults to false.
Authentication The authentication method used for the API request, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, default is GET.
Query Parameters Query parameters for the request, specifically the 'package_name' which is the name of the npm package to query.
Path Parameters Path parameters for the request, specifically the 'id' which is the ID or URL-encoded path of the GitLab group.

Output

JSON

  • dist-tags - The distribution tags of the npm package, typically a mapping of tag names to version numbers.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the 'id' path parameter correctly identifies the GitLab group and is URL-encoded if necessary.
  • Verify the 'package_name' query parameter matches the exact npm package name in the group.
  • Authentication errors may occur if the API key credential is missing or invalid; ensure proper credentials are configured.
  • HTTP method should be GET for this operation; using other methods may result in errors.

Links

Discussion