GitLab API icon

GitLab API

Gitlab

Actions917

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 of an NPM package to a new version after a release.

Use Case Examples

  1. Updating the 'latest' dist-tag of an NPM package to point to a new version after publishing.
  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 authentication.
baseUrl 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 used for this operation.
Path Parameters Parameters for the API path including 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.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and package dist-tag are correctly specified to avoid 404 errors.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials.
  • The package name in the path must be URL-encoded if it contains special characters.

Links

Discussion