GitLab API

GitlabTool

Actions1000

Overview

This node operation updates a specific dist-tag for an NPM package within a GitLab project. It is useful for managing package versions and tags in a GitLab project's package registry, allowing users to modify which version a dist-tag points to. For example, it can be used to update the 'latest' tag to point to a new package version after a release.

Use Case Examples

  1. Updating the 'latest' dist-tag of an NPM package to a new version in a GitLab project.
  2. Changing a dist-tag to point to a different package version for testing or deployment purposes.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters for the request path including project ID and package dist-tag.

Output

JSON

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

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and package dist-tag are correctly specified to avoid 404 errors.
  • Authentication errors may occur if the GitLab API key is missing or invalid; verify credentials.
  • HTTP method should be set to PUT for this operation to update the dist-tag properly.

Discussion