Skip to content

Commit

Permalink
fix: set up patch releaes with dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolethoen committed Feb 29, 2024
1 parent fc901ee commit 64f9a31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ echo "Doing a release..."
LOG=$(git log --format="%s" -1 | grep -Poe "#\d+")
PR_NUM=${LOG:1}

yarn run lerna publish prerelease --preid=prerelease --dist-tag=prerelease --yes 2>&1 | tee lerna-output.txt
# yarn run lerna publish patch --dist-tag=prerelease --yes 2>&1 | tee lerna-output.txt

# use lerna command below for dry run
# yarn run lerna version prerelease --preid=prerelease --yes --no-git-tag-version --no-push | tee lerna-output.txt
yarn run lerna version patch --yes --no-git-tag-version --no-push | tee lerna-output.txt

if grep -i "Successfully published" lerna-output.txt; # Leave a Github comment
then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release
on:
push:
branches:
- main
- 5.2.0
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
},
"version": "independent",
"allowBranch": ["main", "v4", "5.0.x"],
"allowBranch": ["main", "v4", "5.2.x"],
"packages": ["packages/*", "packages/react-integration/demo-app-ts"],
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}

0 comments on commit 64f9a31

Please sign in to comment.