Created
October 16, 2019 17:47
-
-
Save agoldis/d06d4d3cb1fe7125cd8d872f4085ee82 to your computer and use it in GitHub Desktop.
Define credentials to private Github registry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DIRECTORY=$(cd `dirname $0` && pwd) | |
cd $DIRECTORY/.. | |
echo "Adding GitHub registry credentials to $DIRECTORY/../.npmrc" | |
echo "\n//npm.pkg.github.com/:_authToken=$GITHUB_SECRET" >> .npmrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment