From 3b1482aabe794d4bdc03a8115beaa75a6aad844a Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 20 Mar 2024 09:51:35 -0400 Subject: [PATCH 1/3] chore: use local version of lerna --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 061a33d2a..6d65f33ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,7 +51,7 @@ jobs: run: npm ci shell: bash - name: Create GitHub Release - run: npx lerna version ${{ inputs.version }} --yes --force-publish='*' --conventional-commits --create-release github + run: ./node_modules/.bin/lerna version ${{ inputs.version }} --yes --force-publish='*' --conventional-commits --create-release github env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash @@ -87,7 +87,7 @@ jobs: # so we do that here. - name: Bump Package Lock run: | - npx lerna exec "npm install --package-lock-only --legacy-peer-deps" + ./node_modules/.bin/lerna exec "npm install --package-lock-only --legacy-peer-deps" git add . git commit -m "chore(): update package lock files" git push From f51d21164504ec61e56278e87d51bc8eba195f41 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 20 Mar 2024 10:28:53 -0400 Subject: [PATCH 2/3] use lerna 5 --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f148bfa6..2fcf11130 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,7 +51,7 @@ jobs: run: npm ci shell: bash - name: Create GitHub Release - run: ./node_modules/.bin/lerna version ${{ inputs.version }} --yes --force-publish='*' --conventional-commits --create-release github + run: npx lerna@5 version ${{ inputs.version }} --yes --force-publish='*' --conventional-commits --create-release github env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash @@ -87,7 +87,7 @@ jobs: # so we do that here. - name: Bump Package Lock run: | - ./node_modules/.bin/lerna exec "npm install --package-lock-only --legacy-peer-deps" + npx lerna@5 exec "npm install --package-lock-only --legacy-peer-deps" git add . git commit -m "chore(): update package lock files" git push From 72ea8cb706e7dd4eaed8a67dbef378e70ed2a8f1 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 20 Mar 2024 12:08:57 -0400 Subject: [PATCH 3/3] Update release.yml --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2fcf11130..e00e9c123 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,7 +46,8 @@ jobs: 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 + # and that we do not use the global Lerna version. We currently + # rely on functionality that does not exist in newer versions of Lerna. - name: Install root dependencies run: npm ci shell: bash