Skip to content

Commit 1c3f59d

Browse files
authored
chore: use local version of lerna (#1349)
1 parent fdd70c6 commit 1c3f59d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@ jobs:
4646
git config user.email [email protected]
4747
shell: bash
4848
# This ensures the local version of Lerna is installed
49-
# and that we do not use the global Lerna version
49+
# and that we do not use the global Lerna version. We currently
50+
# rely on functionality that does not exist in newer versions of Lerna.
5051
- name: Install root dependencies
5152
run: npm ci
5253
shell: bash
5354
- name: Create GitHub Release
54-
run: npx lerna version ${{ inputs.version }} --yes --force-publish='*' --conventional-commits --create-release github
55+
run: npx lerna@5 version ${{ inputs.version }} --yes --force-publish='*' --conventional-commits --create-release github
5556
env:
5657
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5758
shell: bash
@@ -87,7 +88,7 @@ jobs:
8788
# so we do that here.
8889
- name: Bump Package Lock
8990
run: |
90-
npx lerna exec "npm install --package-lock-only --legacy-peer-deps"
91+
npx lerna@5 exec "npm install --package-lock-only --legacy-peer-deps"
9192
git add .
9293
git commit -m "chore(): update package lock files"
9394
git push

0 commit comments

Comments
 (0)