Skip to content

Commit 7262829

Browse files
lrlnamcasimir
andauthored
Fix public release (#237)
Uploads Downloads Centre artifacts only when release is meant to be public: branch is master, and the current commit is tagged. To make sure we are only upload assets one for all packaged assets, upload Downloads Centre config only on MacOs evergreen task. Co-authored-by: mcasimir <[email protected]>
1 parent cb03701 commit 7262829

24 files changed

+626
-3723
lines changed

.evergreen.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
exec_timeout_secs: 7200
2+
23
# Variables for common functions.
34
#
45
# compile_and_release: Runs the exec compile and release process.

config/build.conf.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const path = require('path');
2+
const os = require('os');
23

34
/**
45
* The project root.
@@ -52,6 +53,7 @@ module.exports = {
5253
analyticsConfig: ANALYTICS_CONFIG,
5354
project: process.env.PROJECT,
5455
revision: process.env.REVISION,
56+
branch: process.env.BRANCH,
5557
evgAwsKey: process.env.AWS_KEY,
5658
evgAwsSecret: process.env.AWS_SECRET,
5759
downloadCenterAwsKey: process.env.DOWNLOAD_CENTER_AWS_KEY,
@@ -61,5 +63,10 @@ module.exports = {
6163
appleUser: process.env.APPLE_DEV_USER,
6264
applePassword: process.env.APPLE_DEV_PASSWORD,
6365
appleAppIdentity: process.env.APPLE_APP_IDENTITY,
64-
isCi: process.env.IS_CI
66+
isCi: process.env.IS_CI === 'true',
67+
platform: os.platform(),
68+
repo: {
69+
owner: 'mongodb-js',
70+
repo: 'mongosh'
71+
}
6572
};

config/eslintrc.base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ module.exports = {
2424
'mocha/no-skipped-tests': 1,
2525
'mocha/no-exclusive-tests': 2,
2626
'semi': 0,
27-
'@typescript-eslint/semi': [2, 'always']
27+
'@typescript-eslint/semi': [2, 'always'],
28+
'no-console': [1, { allow: ['warn', 'error', 'info'] }]
2829
},
2930
overrides: [{
3031
files: ['**/*.js'],

0 commit comments

Comments
 (0)