GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to update the distribution tag of an NPM package within a specific group. It is useful for managing package versions and tags in GitLab's package registry, allowing users to programmatically modify which version of a package a dist-tag points to. For example, it can be used to promote a package version to a 'latest' tag or to manage multiple release channels.

Use Case Examples

  1. Updating the 'latest' dist-tag of an NPM package in a GitLab group to point to a new version.
  2. Changing a dist-tag to manage beta or stable release channels for an NPM package within a GitLab group.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the API request, defaulting to PUT.
Path Parameters Parameters used in the API request path to specify the group ID and the package dist-tag to update.

Output

JSON

  • response - The JSON response from the GitLab API after updating the package dist-tag.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID and package dist-tag are correctly specified and URL-encoded if necessary.
  • Verify that the API key has sufficient permissions to update package tags in the specified GitLab group.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion