15.2.2 Prepare installation credentials
Export a registry access token to your environment
user@localhost:~$ export ANALYTICS_SDK_TOKEN=<token>
# verify
user@localhost:~$ echo $ANALYTICS_SDK_TOKEN
user@localhost:~$ <token> # should output the token
If you don’t have an access token, please reach out to your Gala Rep for assistance.
Provide npm with the proper credentials for installation
# file: .npmrc
@gala-analytics:registry=https://gitlab.com/api/v4/projects/41646566/packages/npm/
//gitlab.com/api/v4/projects/41646566/packages/npm/:_authToken="${ANALYTICS_SDK_TOKEN}"
always-auth=true
Please always use the environment pattern and never place your private deploy token within this file or commit such token to a code repository.