From a67ecacd52e7a74f7c3f9a89755f5b4610f5a62c Mon Sep 17 00:00:00 2001 From: harkamal Date: Sat, 29 Jan 2022 14:28:27 +0530 Subject: [PATCH] Publish exact dependencies for nighly release --- .github/workflows/release-nightly.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index 49d534ddd0c..6fbdb4d886d 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -64,12 +64,16 @@ jobs: # --force-publish: # lerna doesn't want to publish anything otherwise - "lerna success No changed packages # to publish" + # --exact + # lerna will link the dependencies of monorepo packages without ^ operator as npm + # is apparently bad at resolving ^ dependencies of the canary versions. For e.g + # @chainsafe/lodestar-cli@^0.34.0-dev.4 resolves to => 0.34.0 # # NOTE: Using --preid dev.$(git rev-parse --short=7 HEAD) results in `0.24.3-dev.3ddb91d.0+3ddb91d` run: | node_modules/.bin/lerna publish --yes --no-verify-access \ --canary --dist-tag next --no-git-reset --force-publish \ - --preid dev + --preid dev --exact env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Get version