From 8ae4aa4d348962fac093db8923c7abd8f2b80f3f Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Tue, 10 Oct 2023 10:29:10 -0400 Subject: [PATCH] chore(ci): ensure local version of lerna is used --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8314cbe3a..8f3ccdd17 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,8 +45,13 @@ jobs: git config user.name ionitron git config user.email hi@ionicframework.com shell: bash + # This ensures the local version of Lerna is installed + # and that we do not use the global Lerna version + - name: Install root dependencies + run: npm ci + shell: bash - name: Create GitHub Release - run: lerna version ${{ inputs.version }} --yes --force-publish='*' --conventional-commits --create-release github + run: npx lerna version ${{ inputs.version }} --yes --force-publish='*' --conventional-commits --create-release github env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash @@ -55,7 +60,7 @@ jobs: # so we do that here. - name: Bump Package Lock run: | - lerna exec "npm install --package-lock-only --legacy-peer-deps" + npx lerna exec "npm install --package-lock-only --legacy-peer-deps" git add . git commit -m "chore(): update package lock files" git push