-
Notifications
You must be signed in to change notification settings - Fork 28
Conversation
ab35d7a
to
9af1934
Compare
const config = require( packageFile ); | ||
if ( ! config.publishConfig || 'public' !== config.publishConfig.access ) { | ||
process.stdout.write( `${ ERROR } package.json must include "publishConfig": { "access": "public" }\n` ); | ||
process.exitCode = 1; |
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.
I think with this usage, the script will continue to run, but exit with a code of 1
? vs. process.exit( 1 )
which terminates immediately.
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.
Yah, I figured it was fine to let it run to completion, so you see build errors for all modules, if there are multiple.
CONTRIBUTING.md
Outdated
|
||
### Development release | ||
|
||
Run the following command to release a dev version of the outdated packages: | ||
Run the following command to release a dev version of the outdated packages, replacing "123456" with your 2FA code: |
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.
It may be worth making a note that since publishing can take some time, it is good to ensure that the one-time code still has a decent duration remaining before starting the process. Made more cumbersome by the fact that the developer needs to navigate through the publishing options before publishing starts.
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.
👍🏻
Improve the documentation for the package release process.
publishConfig
settings before publishing new packages.This also adds a check for
"publishConfig": { "access": "public" }
being set in each module'spackage.json
.npm run build
will fail (causing Travis, and publishing to fail) if it isn't set.