Skip to content

Commit

Permalink
ci(buildkite): fix set auth token command
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartSquared committed Dec 4, 2024
1 parent c9e1f89 commit b6af978
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .buildkite/scripts/helpers/setup-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
set -e

echo "Authenticating against the GitHub package registry"
# NOTE: we are adding a literal ${GITHUB_REGISTRY_TOKEN} to the npm config here;
# npm/pnpm will interpret it and sub in the environment variable for us,
# meaning we don't have to store the secret on disk.
npm config set "//npm.pkg.github.com/:_authToken" '${GITHUB_REGISTRY_TOKEN}'
npm config set '//npm.pkg.github.com/:_authToken' "${GITHUB_REGISTRY_TOKEN}"

printf "Logged in as: "
npm whoami --registry=https://npm.pkg.github.com

0 comments on commit b6af978

Please sign in to comment.