-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add bot for npm publication through wombat #184
Conversation
5952336
to
18a8531
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM w/ nits
packages/publish/src/app.ts
Outdated
@@ -0,0 +1,21 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use new license headers please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(here and below)
dest.on('error', reject); | ||
dest.on('close', () => { | ||
app.log.info('finished unpacking tarball'); | ||
return resolve(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Being pedantic, but can you split up the return and resolve?
packages/publish/test/publish.ts
Outdated
@@ -0,0 +1,142 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to check in the tarball above?
|
||
// Skip publication unless it's explicitly enabled. | ||
if (!remoteConfiguration) { | ||
app.log.info(`publish not configured for (${repoName})`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using the repo name as a prefix for all logs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 rather than doing so in this PR, perhaps we could create a tracking issue to override the default logger for all our bots; it would be nice to add a bit more context in the logs in general.
Bot for publishing to npm from cloud function, using wombat dressing room.