Skip to content

Commit

Permalink
fix: release script should update yarn.lock (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbellone committed Apr 26, 2023
1 parent 6f01d84 commit 4464168
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ if [[ -n $(git status --porcelain) ]]; then
exit 1
fi

printf "\n\nRelease: update working tree"
printf "\n\nRelease: update working tree\n"
git pull origin master
git fetch origin --tags

printf "Release: yarn"
printf "Release: yarn\n"
yarn


Expand Down Expand Up @@ -64,6 +64,9 @@ yarn add --dev eslint-config-algolia@"$newVersion"
cd ../..
npm version "$newVersion" --no-git-tag-version

# update yarn.lock
yarn

# update changelog
printf "\n\nRelease: update changelog"
conventional-changelog --preset angular --infile CHANGELOG.md --same-file
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3110,7 +3110,7 @@ __metadata:
languageName: node
linkType: hard

"eslint-config-algolia@20.1.0, eslint-config-algolia@workspace:packages/eslint-config-algolia":
"eslint-config-algolia@21.0.0, eslint-config-algolia@workspace:packages/eslint-config-algolia":
version: 0.0.0-use.local
resolution: "eslint-config-algolia@workspace:packages/eslint-config-algolia"
dependencies:
Expand Down Expand Up @@ -7365,7 +7365,7 @@ __metadata:
"@typescript-eslint/eslint-plugin": 5.5.0
"@typescript-eslint/parser": 5.5.0
eslint: 8.3.0
eslint-config-algolia: 20.1.0
eslint-config-algolia: 21.0.0
jest: 27.4.2
prop-types: 15.7.2
react: 17.0.2
Expand Down

0 comments on commit 4464168

Please sign in to comment.