Minimal setup as a POC.
For renovate to access repositories public and private, a Github token is needed.
Generate a token (assuming you are using GitHub in this guide) at https://github.com/settings/tokens
-
Use your token as an environment variable:
$env:GITHUB_TOKEN="<your-token>" # verify: echo $env:GITHUB_TOKEN
-
Confirm the validity of the token by running:
$headers = @{ "Authorization" = "token $env:GITHUB_TOKEN" } Invoke-WebRequest -Uri "https://api.github.com/user" -Headers $headers
-
Use your token as an environment variable:
export GITHUB_TOKEN="<your-token>"
Or add it to your .bashrc/.zshrc:
echo 'export GITHUB_TOKEN="<your-token>"' >> ~/.zshrc # or ~/.bashrc source ~/.zshrc
-
Confirm the validity of the token by running:
curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user
-
Ensure nodejs and npm are installed
-
Install nvm from https://github.com/coreybutler/nvm-windows/releases (you may need to restart after install)
-
Install nodejs:
nvm install node nvm install latest nvm use latest
-
Install renovate:
npm install -g renovate
-
Install nvm, npm and renovate:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash # (bump the version) nvm install node npm install -g renovate
renovate --token $env:GITHUB_TOKEN --platform=github christianshub/renovate-test
renovate --token $GITHUB_TOKEN --platform=github christianshub/renovate-test
Note you can also you docker for this:
docker run --rm -e GITHUB_TOKEN=$GITHUB_TOKEN renovate/renovate:37 --platform=github christianshub/renovate-test
To obtain debug information, set a LOG_LEVEL
environment variable to debug
and run renovate again:
export LOG_LEVEL=debug
You can also dry run:
renovate --token $GITHUB_TOKEN --dry-run=true --platform=github christianshub/renovate-test