Created
March 6, 2020 13:27
-
-
Save ctala/21c659fb3a537238b683cf734f9d4a81 to your computer and use it in GitHub Desktop.
TravisCI with GitHUB Package Repository (Only Pre Install and Install ) that generates .npmrc with github token
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
language: node_js | |
node_js: | |
- 10 | |
cache: | |
directories: | |
- node_modules | |
before_install: | |
- echo "INSTALL GLOBAL DEPENDENCIES" | |
- npm install -g serverless | |
- echo "BEFORE INSTALL - ADD PRIVATE REPO" | |
- npm config set registry https://npm.pkg.github.com/OWNER | |
- echo "GENERATING AUTH" | |
- echo //npm.pkg.github.com/:_authToken=$GITHUB_TOKEN > .npmrc | |
install: | |
- echo "INSTALL" | |
- npm install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment