Skip to content

Commit e006f7f

Browse files
authored
ci: fix script (#134)
1 parent 55550f6 commit e006f7f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/create_release_branch.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ VERSION=$1
44
echo "Preparing release $VERSION"
55

66
# Update .csproj file
7-
# This regex switches all occurences of >0.21.0< to >0.22.0<
8-
# So <PackageVersion>0.21.0</PackageVersion> becomes <PackageVersion>0.22.0</PackageVersion>
9-
sed -i -r "s/>[0-9]+\.[0-9]+\.[0-9]+</>$VERSION</g" src/stream-net.csproj
7+
# This regex to update Version tag in .csproj file
8+
sed -i -r "s/\(<Version>\).*\(<\/Version>\)/\1$VERSION\2/" src/stream-net.csproj
109

1110
# Create changelog
1211
# --skip.commit: We manually commit the changes
@@ -15,7 +14,7 @@ sed -i -r "s/>[0-9]+\.[0-9]+\.[0-9]+</>$VERSION</g" src/stream-net.csproj
1514
# we set it to an empty string
1615
npx --yes [email protected] --release-as "$VERSION" --skip.tag --skip.commit --tag-prefix=
1716

18-
git config --global user.name 'github-actions'
17+
git config --global user.name 'github-actions'
1918
git config --global user.email '[email protected]'
2019
git checkout -q -b "release-$VERSION"
2120
git commit -am "chore(release): $VERSION"

0 commit comments

Comments
 (0)