From dcf5f67a0e95a16151c5f2b0b693b807f9f54dbe Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Wed, 20 Sep 2023 11:26:38 +0700 Subject: [PATCH] ci(publish): sync package-lock files state (includes private packages) --- .github/actions/update-package-lock/action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/update-package-lock/action.yml b/.github/actions/update-package-lock/action.yml index 267aff0984..54a135d531 100644 --- a/.github/actions/update-package-lock/action.yml +++ b/.github/actions/update-package-lock/action.yml @@ -17,9 +17,12 @@ runs: - name: Update package-lock's shell: bash run: | + # Sync package-lock file state (root level) npm i --no-audit --no-progress --package-lock-only + # Remove the node_modules directory from all packages lerna clean -y - lerna exec --no-private -- npm i --no-audit --no-progress --package-lock-only --ignore-scripts + # Sync package-lock files state (includes private packages) + lerna exec -- npm i --no-audit --no-progress --ignore-scripts --package-lock-only --lockfile-version 2 # root deps don't update correctly on first regeneration O_o npm i --no-audit --no-progress --package-lock-only