File tree Expand file tree Collapse file tree 3 files changed +50
-1
lines changed
Expand file tree Collapse file tree 3 files changed +50
-1
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,7 @@ buildvariants:
252252 run_on : ubuntu2204-large
253253 tasks :
254254 - name : publish
255+ - name : publish-web
255256 - name : publish-dev-release-info
256257
257258 - name : static-analysis
@@ -410,6 +411,21 @@ tasks:
410411 - func : get-all-artifacts
411412 - func : publish
412413
414+ - name : publish-web
415+ # Publish both on PRs and on main (if it gets too noisy and won't be used
416+ # much we can probably disable for PRs)
417+ tags : ['run-on-pr']
418+ depends_on :
419+ - name : ' .required-for-publish'
420+ variant : ' *'
421+ commands :
422+ - func : prepare
423+ - func : install
424+ - func : bootstrap
425+ vars :
426+ scope : " @mongodb-js/compass-web"
427+ - func : publish-web
428+
413429 - name : publish-dev-release-info
414430 tags : []
415431 depends_on :
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ buildvariants:
229229 - name : test-packaged-app-macos-15-x64
230230 display_name : Test Packaged App MacOS x64 15
231231 run_on : macos-15-amd64-gui
232- patchable : true
232+ patchable : false
233233 depends_on :
234234 - name : package-compass
235235 variant : package-macos-x64
@@ -242,6 +242,7 @@ buildvariants:
242242 run_on : ubuntu2204-large
243243 tasks :
244244 - name : publish
245+ - name : publish-web
245246 - name : publish-dev-release-info
246247 - name : static-analysis
247248 display_name : Create Static Analysis Report
@@ -415,6 +416,19 @@ tasks:
415416 scope : mongodb-compass
416417 - func : get-all-artifacts
417418 - func : publish
419+ - name : publish-web
420+ tags :
421+ - run-on-pr
422+ depends_on :
423+ - name : .required-for-publish
424+ variant : ' *'
425+ commands :
426+ - func : prepare
427+ - func : install
428+ - func : bootstrap
429+ vars :
430+ scope : ' @mongodb-js/compass-web'
431+ - func : publish-web
418432 - name : publish-dev-release-info
419433 tags : []
420434 depends_on :
Original file line number Diff line number Diff line change @@ -521,6 +521,25 @@ functions:
521521 echo "Uploading release assets to S3 and GitHub if needed..."
522522 npm run --workspace mongodb-compass upload
523523
524+ publish-web :
525+ - command : ec2.assume_role
526+ params :
527+ role_arn : ${downloads_bucket_role_arn}
528+ - command : shell.exec
529+ params :
530+ working_dir : src
531+ shell : bash
532+ env :
533+ << : *compass-env
534+ script : |
535+ set -e
536+ # Load environment variables
537+ eval $(.evergreen/print-compass-env.sh)
538+ echo "Compiling compass-web"
539+ npm run --workspace @mongodb-js/compass-web compile
540+ echo "Uploading release assets to S3"
541+ npm run --workspace @mongodb-js/compass-web upload
542+
524543 publish-dev-release-info :
525544 - command : shell.exec
526545 params :
You can’t perform that action at this time.
0 commit comments