Skip to content

Commit 252ca7a

Browse files
authored
fix: avoid lerna reformatting lockfile (#379)
avoid it changing all the quotes as mentioned here lerna/lerna#3981
1 parent 8c93ded commit 252ca7a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

scripts/publish.alpha.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ pnpm exec lerna version preminor \
2424
--conventional-commits \
2525
--conventional-prerelease \
2626
--preid alpha
27+
28+
# workaround https://github.com/lerna/lerna/issues/3981
29+
TAG=$(git tag --points-at HEAD)
30+
31+
pnpm i --lockfile-only
32+
git add pnpm-lock.yaml
33+
git commit --amend --no-edit
34+
35+
git tag -f "${TAG}"

scripts/publish.release.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,12 @@ pnpm exec lerna version \
2222
--force-publish \
2323
--no-push \
2424
--conventional-commits
25+
26+
# workaround https://github.com/lerna/lerna/issues/3981
27+
TAG=$(git tag --points-at HEAD)
28+
29+
pnpm i --lockfile-only
30+
git add pnpm-lock.yaml
31+
git commit --amend --no-edit
32+
33+
git tag -f "${TAG}"

0 commit comments

Comments
 (0)