GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves the distribution tags of a specified npm package from the GitLab API (v4). It is useful for developers or automation workflows that need to fetch metadata about npm packages hosted on GitLab, such as the latest version tags or other version labels associated with the package.

Use Case Examples

  1. A CI/CD pipeline that automatically checks the latest version tags of an npm package before deployment.
  2. A monitoring workflow that tracks changes in npm package versions to trigger notifications or updates.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to send the API request to, defaulting to https://gitlab.com.
Method The HTTP method to use for the API request, defaulting to GET.
Query Parameters Collection of query parameters for the API request, including the required package_name parameter specifying the npm package name to query.

Output

JSON

  • dist-tags - The distribution tags of the specified npm package, typically including version labels like 'latest'.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the package_name query parameter is provided and correctly spelled; missing or incorrect package names will cause the API request to fail.
  • If authentication is enabled, verify that the GitLab API credential is valid and has sufficient permissions to access the package information.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct and accessible.

Links

Discussion