diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1abf4f10848..bd6b1c6c7e2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -70,6 +70,9 @@ jobs: - name: Install dependencies run: npm run install_npm && npm install --no-package-lock + - name: Install Lerna with trusted publishing support + run: npm install --no-save --no-package-lock lerna@9.0.7 + - name: Configure git author run: | git config user.name "github-actions[bot]" diff --git a/scripts/publish.sh b/scripts/publish.sh index 308f249ec20..bda9956c8c1 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -7,12 +7,6 @@ git add . RELEASE_TYPE="$1" VERSION_BUMP="$2" -LERNA_PUBLISH_VERSION="9.0.7" - -# Lerna 7 does not support npm trusted publishing, while the release runner uses Node.js 22. -lerna() { - npx --yes --package="lerna@${LERNA_PUBLISH_VERSION}" lerna "$@" -} version() { if [ -n "$VERSION_BUMP" ]; then