From b8f3d183243ab3400a0a7505f76cfb83b8f0bf42 Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Wed, 11 May 2022 16:48:02 -0700 Subject: [PATCH] delete prepublish step --- .github/workflows/build.yml | 8 -------- package.json | 1 - 2 files changed, 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 155126752160..2ea04b75ede6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -92,14 +92,6 @@ jobs: # this file) to a constant and skip rebuilding all of the packages each time CI runs. if: steps.cache_built_packages.outputs.cache-hit == '' run: yarn build - # We are performing a `prepublishOnly` step manually because build workflow is not responsible for publishing - # the actual release. It only creates artifacts which then are uploaded and used by another workflow. - # Because of that, any `prepublishOnly` script is skipped and files it produces are not included in the tarball. - # We also cannot use `prepare` script which would be more suited, because it's run only before `pack` is called, - # and it's done from a `release` workflow and not here. - - name: Run prepublishOnly script - if: startsWith(github.ref, 'refs/heads/release/') - run: yarn prepublishOnly outputs: # this needs to be passed on, because the `needs` context only looks at direct ancestors (so steps which depend on # `job_build` can't see `job_install_deps` and what it returned) diff --git a/package.json b/package.json index 5b49d570c7fc..85d5f62e8074 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "link:yarn": "lerna run --stream --concurrency 1 link:yarn", "lint": "lerna run --parallel lint", "lint:eslint": "lerna run --parallel lint:eslint", - "prepublishOnly": "lerna run --stream --concurrency 1 prepublishOnly", "postpublish": "make publish-docs && lerna run --stream --concurrency 1 postpublish", "test": "lerna run --ignore @sentry-internal/browser-integration-tests --ignore @sentry-internal/node-integration-tests --stream --concurrency 1 --sort test", "test-ci": "ts-node ./scripts/test.ts"