GitLab API

GitlabTool

Actions1000

Overview

This node operation updates a specific dist-tag for an NPM package in a GitLab repository. It is useful for managing package versions by assigning or modifying tags such as 'latest' or 'beta' to different package versions. For example, a developer can use this operation to update the 'latest' tag to point to a new version of a package after a successful release.

Use Case Examples

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

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access.
Authentication Specifies the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but PUT is relevant for this operation.
Tag The dist-tag of the NPM package to update, e.g., 'latest' or 'beta'.

Output

JSON

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

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the provided tag parameter is valid and exists for the package.
  • Verify that the authentication credentials are correct and have sufficient permissions to update package tags.
  • Check the baseUrl to ensure it points to the correct GitLab instance.
  • Common error messages may include authentication failures, invalid tag names, or permission denied errors. Verify the API token and user permissions to resolve these.

Links

Discussion