Skip to content
Merged
13 changes: 13 additions & 0 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,17 @@ functions:
DEBUG=${debug} MONGODB_VERSION=${mongodb_version|4.0.3} npm run test-ci --unsafe-perm -- --stream

'package':
- command: shell.exec
params:
working_dir: src
shell: bash
script: |
set -e
# Load environment variables generated by `prepare`
source ~/compass_env.sh

echo "Generating package-lock file for Compass application"
npm run gen-package-lock mongodb-compass
- command: shell.exec
params:
working_dir: src/packages/compass
Expand All @@ -185,6 +196,8 @@ functions:
npm run evergreen-expansions ${compass_distribution}
- command: expansions.update
params:
# The only variables used from hadron-build generated expansions seems
# to be all the `*_filename` vars and nothing else
file: src/packages/compass/expansions.yml
- command: shell.exec
params:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ jobs:
# Setting debug before this line breaks plugins build process
export DEBUG=hadron*,mongo*,electron*

# Generate package lock for the Compass workspace so that external
# dependencies are exactly matching monorepo root package-lock
npm run gen-package-lock mongodb-compass

# Finally start the packaging process
npm run release-evergreen

# Clean-up background verdaccio process
Expand Down
Loading