Skip to content

Instantly share code, notes, and snippets.

@kenotron
Created August 1, 2016 17:25
Show Gist options
  • Save kenotron/349bf6fef00eeb5a7eaf2d986ba1b820 to your computer and use it in GitHub Desktop.
Save kenotron/349bf6fef00eeb5a7eaf2d986ba1b820 to your computer and use it in GitHub Desktop.
# I just add these as steps as tasks inside a VSTS build def
npm set always-auth
npm set email xxxx@yyyy.com
...
# Caveats:
# 1. now your npm config is DIRTY globally - only one of these creds can be active at a time
# 2. VSTS has a notion of "secure variable" that can be exposed env variables (write only) not sure if Jenkins has similar feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment