From a3d347363a8e543c88ddb5f7dcdee4daabbcb196 Mon Sep 17 00:00:00 2001 From: David Murdoch <187813+davidmurdoch@users.noreply.github.com> Date: Tue, 22 Aug 2023 17:00:04 -0400 Subject: [PATCH] fix publishing --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ed4f3ca11..64589a0039 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -102,11 +102,11 @@ jobs: - name: Update package versions for latest release (master) if: ${{ env.TAG == 'latest' }} - run: $(npm bin)/lerna version "$RELEASE_KIND" --no-git-tag-version --no-push --yes --exact + run: npx -y lerna@4.0.0 version "$RELEASE_KIND" --no-git-tag-version --no-push --yes --exact - name: Update package versions for pre-releases if: ${{ env.TAG != 'latest' }} - run: $(npm bin)/lerna version prerelease --no-git-tag-version --no-push --yes --exact --preid "$TAG" + run: npx -y lerna@4.0.0 version prerelease --no-git-tag-version --no-push --yes --exact --preid "$TAG" - name: Add updated versions to git run: git add . @@ -154,7 +154,7 @@ jobs: # this needs `--no-verify-access` until https://github.com/lerna/lerna/issues/2788 is fixed - name: Release to npm run: | - $(npm bin)/lerna publish from-package --yes --dist-tag ${TAG} --pre-dist-tag ${TAG} --no-verify-access + npx -y lerna@4.0.0 version publish from-package --yes --dist-tag ${TAG} --pre-dist-tag ${TAG} --no-verify-access env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}