Skip to content

Commit de19718

Browse files
committed
chore: Fix set-version script
1 parent 260d195 commit de19718

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

set-version.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22

3-
VERSION="export const version = '$1';"
3+
VERSION=$1
4+
VERSION_VAR="export const version = '$VERSION';"
45

56
echo -n "" > ./projects/stream-chat-angular/src/assets/version.ts
6-
echo $VERSION > ./projects/stream-chat-angular/src/assets/version.ts
7+
echo $VERSION_VAR > ./projects/stream-chat-angular/src/assets/version.ts
8+
sed -i "s/\d\.\d\.\d/\$VERSION/" ./projects/stream-chat-angular/package.json
79
npm run build:prod

0 commit comments

Comments
 (0)