sgartifactregistry

package
v0.280.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NpmAuthenticate

func NpmAuthenticate(ctx context.Context, packageJSONDir, registryURL string) error

NpmAuthenticate authenticates to the Artifact Registry in the give registryURL. If yarn major version is 1 we add authentication information for the given registryURL in .npmrc in the user directory otherwise add to .yarnrc.yaml in the user directory. The npm and yarn commands are run from the give package.json directory in order to use the proper yarn version.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL