GitLab API

GitlabTool

Actions905

Overview

This node operation updates a specific dist-tag for an NPM package within a GitLab project. It is useful for managing package versions by modifying tags such as 'latest' or 'beta' to point to different package versions. For example, a developer can use this to promote a beta version of a package to the latest stable release tag.

Use Case Examples

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

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used, 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 PUT.
Path Parameters Parameters used in the request path to specify the project ID and the package dist-tag to update.

Output

JSON

  • response - The JSON response from the GitLab API after updating the package dist-tag, typically including the updated tag information.

Dependencies

  • Requires GitLab API authentication credentials (API key or token).

Troubleshooting

  • Ensure the project ID and package dist-tag are correctly specified; incorrect values will cause API errors.
  • Authentication errors may occur if the API token is missing or invalid; verify credentials are set up properly.
  • Network or base URL misconfiguration can lead to connection failures; confirm the baseUrl is correct.

Links

Discussion