Skip to content

Commit 98a5cb4

Browse files
josephperrottmgechev
authored andcommitted
build: default to wombat proxy for publishing
If no --registry argument is provided when calling to publish use the Wombat proxy. Additionally, updates the release process documentation to instruct usage of the Wombat proxy.
1 parent e851d4f commit 98a5cb4

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

docs/process/release.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,18 @@ git push upstream && git push upstream --tags
119119

120120
**This can ONLY be done by a Google employee.**
121121

122-
Log in to [NPM](https://npmjs.com/) to the `angular` account in order to
123-
publish. This account is protected by two factor authentication (2FA).
122+
Log in to the Wombat publishing service using your own github and google.com
123+
account to publish. This enforces the loging is done using 2Factor auth.
124124

125-
Run `npm login`:
125+
Run `npm login --registry https://wombat-dressing-room.appspot.com`:
126126

127-
1. For username, use `angular`.
128-
1. For password, use the value stored [here](http://go/ng-npm-pass).
129-
1. For email, use `[email protected]`.
130-
1. For two-factor code, you'll need to set up the account.
131-
* Use an authenticator app such as [Google Authenticator](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2).
132-
* Add a new account and enter the text key from [here](http://go/ng-npm-2fa).
133-
* The app will start showing two-factor codes, enter one into the
134-
`npm login` prompt.
127+
1. In the new browser tab, the registry app will ask you to connect with GitHub to create a token
128+
1. After connecting with github, you will be redirected to create a token
129+
1. Upon redirect, an auth token is added to your ~/.npmrc for the proxy
135130

136-
Once successfully logged in, it is time to publish.
131+
After closing the tab, you have successfully logged in, it is time to publish.
132+
133+
**NOTE: After publishing, remove the token added to your `~/.npmrc` file to logout.**
137134

138135
### Publishing
139136

scripts/publish.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ export default async function (args: PublishArgs, logger: logging.Logger) {
116116
if (args.tag) {
117117
publishArgs.push('--tag', args.tag);
118118
}
119-
if (args.registry) {
120-
publishArgs.push('--registry', args.registry);
121-
}
119+
120+
// If no registry is provided, the wombat proxy should be used.
121+
publishArgs.push('--registry', args.registry || 'https://wombat-dressing-room.appspot.com');
122122

123123
return _exec('npm', publishArgs, {
124124
cwd: pkg.dist,

0 commit comments

Comments
 (0)