aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/postpublish_utils.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-20 08:36:03 +0800
committerFabio Berger <me@fabioberger.com>2018-04-20 08:36:03 +0800
commit417cec9e04af84935c38ed77cdb53a8026b0004e (patch)
treebd9ba53c7fb98a7fa2ce75cc3fc921c30b9d1afb /packages/monorepo-scripts/src/postpublish_utils.ts
parent2b15c03b9ac516f7e38eef174503096026162b90 (diff)
downloaddexon-0x-contracts-417cec9e04af84935c38ed77cdb53a8026b0004e.tar.gz
dexon-0x-contracts-417cec9e04af84935c38ed77cdb53a8026b0004e.tar.zst
dexon-0x-contracts-417cec9e04af84935c38ed77cdb53a8026b0004e.zip
Consolidate github personal access token env to one place: constants.ts
Diffstat (limited to 'packages/monorepo-scripts/src/postpublish_utils.ts')
-rw-r--r--packages/monorepo-scripts/src/postpublish_utils.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/monorepo-scripts/src/postpublish_utils.ts b/packages/monorepo-scripts/src/postpublish_utils.ts
index ca4c92f5d..df2bcb128 100644
--- a/packages/monorepo-scripts/src/postpublish_utils.ts
+++ b/packages/monorepo-scripts/src/postpublish_utils.ts
@@ -10,7 +10,6 @@ import { constants } from './constants';
import { utils } from './utils';
const publishReleaseAsync = promisify(publishRelease);
-const githubPersonalAccessToken = process.env.GITHUB_PERSONAL_ACCESS_TOKEN_0X_JS;
const generatedDocsDirectoryName = 'generated_docs';
export interface PostpublishConfigs {
@@ -97,7 +96,7 @@ export const postpublishUtils = {
const finalAssets = this.adjustAssetPaths(cwd, assets);
utils.log('POSTPUBLISH: Releasing ', releaseName, '...');
const result = await publishReleaseAsync({
- token: githubPersonalAccessToken,
+ token: constants.githubPersonalAccessToken,
owner: '0xProject',
repo: '0x-monorepo',
tag,