diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 468b91adf..e00e9c123 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,12 +46,13 @@ 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 - name: Create GitHub Release - run: npx 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 +88,7 @@ jobs: # so we do that here. - name: Bump Package Lock run: | - npx 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