Skip to content

Commit 5b00238

Browse files
Merge pull request #566 from GetStream/vishal/version-fix
moving post_version script logic to release script
2 parents fcd577a + 47a0543 commit 5b00238

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

bin/release.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ npm version --no-git-tag-version "$1"
2626
sed -e 's|"stream-chat-react-native-core": "[^"]*"|"stream-chat-react-native-core": "'"$1"'"|g' -i.bak package.json
2727
rm package.json.bak
2828
cd ..
29+
30+
sed -e 's|"version": "[^"]*"|"version": "'"$1"'"|g' -i.bak src/version.json
31+
rm src/version.json.bak
32+
2933
git add {expo,native}-package/package.json
30-
#yarn docs
31-
#git add docs
34+
git add src/version.json
35+
3236
git add expo-package/yarn.lock
3337
git add native-package/yarn.lock
3438

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"eslint": "eslint '**/*.{js,md,ts,jsx,tsx}' --max-warnings 0",
2828
"lint": "prettier --list-different 'src/**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc .babelrc && eslint 'src/**/*.{js,ts,tsx,md}' --max-warnings 0 && yarn run validate-translations",
2929
"lint-fix": "prettier --write 'src/**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc .babelrc && eslint --fix 'src/**/*.{js,ts,tsx,md}' --max-warnings 0",
30-
"postversion": "./scripts/post_version.sh",
3130
"prepare": "yarn run build",
3231
"prepare-distribution": "cd examples/SampleApp && npm version patch && react-native-version && git add ./ && git commit -m 'Bump build version' --no-verify",
3332
"prettier": "prettier --list-different '**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc .babelrc",

scripts/post_version.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)