aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/postpublish_utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/monorepo-scripts/src/postpublish_utils.ts')
-rw-r--r--packages/monorepo-scripts/src/postpublish_utils.ts47
1 files changed, 26 insertions, 21 deletions
diff --git a/packages/monorepo-scripts/src/postpublish_utils.ts b/packages/monorepo-scripts/src/postpublish_utils.ts
index 8c9d95e44..229bb9031 100644
--- a/packages/monorepo-scripts/src/postpublish_utils.ts
+++ b/packages/monorepo-scripts/src/postpublish_utils.ts
@@ -25,6 +25,8 @@ export interface DocPublishConfigs {
s3StagingBucketPath: string;
}
+const IS_LOCAL_PUBLISH = process.env.IS_LOCAL_PUBLISH === 'true';
+
export const postpublishUtils = {
generateConfig(packageJSON: any, tsConfigJSON: any, cwd: string): PostpublishConfigs {
if (_.isUndefined(packageJSON.name)) {
@@ -51,27 +53,30 @@ export const postpublishUtils = {
return configs;
},
async runAsync(packageJSON: any, tsConfigJSON: any, cwd: string): Promise<void> {
- // const configs = postpublishUtils.generateConfig(packageJSON, tsConfigJSON, cwd);
- // await postpublishUtils.publishReleaseNotesAsync(
- // configs.cwd,
- // configs.packageName,
- // configs.version,
- // configs.assets,
- // );
- // if (
- // !_.isUndefined(configs.docPublishConfigs.s3BucketPath) ||
- // !_.isUndefined(configs.docPublishConfigs.s3StagingBucketPath)
- // ) {
- // utils.log('POSTPUBLISH: Release successful, generating docs...');
- // await postpublishUtils.generateAndUploadDocsAsync(
- // configs.cwd,
- // configs.docPublishConfigs.fileIncludes,
- // configs.version,
- // configs.docPublishConfigs.s3BucketPath,
- // );
- // } else {
- // utils.log(`POSTPUBLISH: No S3Bucket config found for ${packageJSON.name}. Skipping doc JSON generation.`);
- // }
+ if (IS_LOCAL_PUBLISH) {
+ return;
+ }
+ const configs = postpublishUtils.generateConfig(packageJSON, tsConfigJSON, cwd);
+ await postpublishUtils.publishReleaseNotesAsync(
+ configs.cwd,
+ configs.packageName,
+ configs.version,
+ configs.assets,
+ );
+ if (
+ !_.isUndefined(configs.docPublishConfigs.s3BucketPath) ||
+ !_.isUndefined(configs.docPublishConfigs.s3StagingBucketPath)
+ ) {
+ utils.log('POSTPUBLISH: Release successful, generating docs...');
+ await postpublishUtils.generateAndUploadDocsAsync(
+ configs.cwd,
+ configs.docPublishConfigs.fileIncludes,
+ configs.version,
+ configs.docPublishConfigs.s3BucketPath,
+ );
+ } else {
+ utils.log(`POSTPUBLISH: No S3Bucket config found for ${packageJSON.name}. Skipping doc JSON generation.`);
+ }
},
async publishDocsToStagingAsync(packageJSON: any, tsConfigJSON: any, cwd: string): Promise<void> {
const configs = postpublishUtils.generateConfig(packageJSON, tsConfigJSON, cwd);
ibgnomekbd?h=gstreamer&id=444a47ba39d176ab6be5d165b2147eacd2897112'>- update to jpeg-8dinoex2010-02-051-0/+1 * Update to 2.28.2.kwm2009-12-173-4/+7 * Presenting GNOME 2.28.1 for FreeBSD. The official release notes for thismarcus2009-11-293-11/+19 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-0/+1 * Presenting GNOME 2.26 for FreeBSD. Seemarcus2009-04-103-5/+7 * Presenting GNOME 2.24 for FreeBSD.marcus2009-01-103-11/+17 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1 * The FreeBSD GNOME team is proud to annunce the release of GNOME 2.22.0 formarcus2008-03-243-14/+28 * Presenting GNOME 2.20.1 and all related works for FreeBSD. The officialmarcus2007-10-253-11/+32 * The schemas file shouldn't be in plist.mezz2007-05-311-1/+0 * Update to 2.18.2.mezz2007-05-293-5/+13 * - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1 * - Remove empty filepav2007-04-171-0/+0 * Update to 2.18.1.marcus2007-04-104-27/+21 * Fix the build with GCC 4.x.marcus2007-03-271-2/+6 * Fix the invalid freeing of memory problem with the official patch to correctmarcus2007-03-232-14/+18 * Fix a bug where static memory was being free'd as a key to a hash table.marcus2007-03-222-0/+19