From debb803612739b8cf84d67854259a4ec6526f564 Mon Sep 17 00:00:00 2001 From: Sergey Petushkov Date: Wed, 22 Jan 2025 12:49:26 +0100 Subject: [PATCH] chore(ci): remove publish-packages-next task from evergreen --- .evergreen/buildvariants-and-tasks.in.yml | 12 --------- .evergreen/buildvariants-and-tasks.yml | 11 -------- .evergreen/functions.yml | 31 ----------------------- package.json | 2 -- 4 files changed, 56 deletions(-) diff --git a/.evergreen/buildvariants-and-tasks.in.yml b/.evergreen/buildvariants-and-tasks.in.yml index 6f4d314c173..e84b998402e 100644 --- a/.evergreen/buildvariants-and-tasks.in.yml +++ b/.evergreen/buildvariants-and-tasks.in.yml @@ -287,7 +287,6 @@ buildvariants: run_on: ubuntu2004-large tasks: - name: publish - - name: publish-packages-next - name: publish-dev-release-info - name: create_static_analysis_report @@ -429,17 +428,6 @@ tasks: - func: get-all-artifacts - func: publish - - name: publish-packages-next - tags: [] - depends_on: - - name: '.required-for-publish' - variant: '*' - commands: - - func: prepare - - func: install - - func: bootstrap - - func: publish-packages-next - - name: publish-dev-release-info tags: [] depends_on: diff --git a/.evergreen/buildvariants-and-tasks.yml b/.evergreen/buildvariants-and-tasks.yml index e1d43ec0e7a..c92fe9e8ab5 100644 --- a/.evergreen/buildvariants-and-tasks.yml +++ b/.evergreen/buildvariants-and-tasks.yml @@ -251,7 +251,6 @@ buildvariants: run_on: ubuntu2004-large tasks: - name: publish - - name: publish-packages-next - name: publish-dev-release-info - name: create_static_analysis_report - name: connectivity-tests @@ -409,16 +408,6 @@ tasks: scope: mongodb-compass - func: get-all-artifacts - func: publish - - name: publish-packages-next - tags: [] - depends_on: - - name: .required-for-publish - variant: '*' - commands: - - func: prepare - - func: install - - func: bootstrap - - func: publish-packages-next - name: publish-dev-release-info tags: [] depends_on: diff --git a/.evergreen/functions.yml b/.evergreen/functions.yml index 7ef78460f5b..8b2ce8b7672 100644 --- a/.evergreen/functions.yml +++ b/.evergreen/functions.yml @@ -982,37 +982,6 @@ functions: echo "Downloading release assets from evergreen bucket..." npm run --workspace mongodb-compass download - generate-tasks: - - command: generate.tasks - params: - files: - - tasks.json - - publish-packages-next: - - command: shell.exec - params: - working_dir: src - shell: bash - env: - <<: *compass-env - NPM_TOKEN: ${devtoolsbot_npm_token} - script: | - # Only package publish for commits on the main evergreen project. - if [[ "${requester}" == "commit" ]] && [[ "${project}" == "10gen-compass-main" ]]; then - set -e - # Load environment variables - eval $(.evergreen/print-compass-env.sh) - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc - npm config list - echo "Publishing packages as $(npm whoami)" - npm run version-packages-next - # unstage after lerna staged version - git reset - # mark files as unchanged so that lerna can publish - git update-index --assume-unchanged $(git diff --name-only HEAD) - bash ".evergreen/retry-with-backoff.sh" npm run publish-packages-next - fi - generate-vulnerability-report: - command: shell.exec params: diff --git a/package.json b/package.json index ff5d14a4f58..7bbd3810306 100644 --- a/package.json +++ b/package.json @@ -50,8 +50,6 @@ "update-evergreen-config": "node .evergreen/template-yml.js", "postupdate-evergreen-config": "evergreen validate .evergreen.yml", "update-security-test-summary": "ts-node scripts/generate-security-test-summary.ts > docs/security-test-summary.md", - "version-packages-next": "npx lerna version \"0.0.0-next-$(git rev-parse HEAD)\" --exact --private --no-git-tag-version --force-publish --no-push --yes", - "publish-packages-next": "npx lerna publish from-package --no-private --dist-tag next --pre-dist-tag next --yes", "prepare": "husky install", "snyk-test": "node scripts/snyk-test.js", "pregenerate-vulnerability-report": "npm run compile -w packages/compass && npm run snyk-test",