diff --git a/example/package.json b/example/package.json index 3566a8e..3d3355c 100644 --- a/example/package.json +++ b/example/package.json @@ -1,6 +1,6 @@ { "name": "example", - "version": "0.1.0", + "version": "0.1.1", "private": true, "scripts": { "android": "./scripts/installer.sh android", @@ -10,7 +10,7 @@ "test": "jest" }, "dependencies": { - "@komoju/komoju-react-native": "0.1.0", + "@komoju/komoju-react-native": "0.1.1", "i18next": "^23.11.5", "react": "18.2.0", "react-i18next": "^14.1.2", diff --git a/payment_sdk/package.json b/payment_sdk/package.json index 3cba895..8b9d413 100644 --- a/payment_sdk/package.json +++ b/payment_sdk/package.json @@ -1,6 +1,6 @@ { "name": "@komoju/komoju-react-native", - "version": "0.0.7", + "version": "0.1.0", "private": false, "description": "degica payment SDK", "main": "dist/index.js", diff --git a/payment_sdk/scripts/publish.sh b/payment_sdk/scripts/publish.sh index 78002d3..4ce575f 100755 --- a/payment_sdk/scripts/publish.sh +++ b/payment_sdk/scripts/publish.sh @@ -15,7 +15,7 @@ EOF } percentEncodeString() { - node -p "encodeURIComponent('$1')" + jq -rn --arg x "$1" '$x|@uri' } create_github_release() { @@ -128,22 +128,15 @@ npm run build echo "Bumping package.json $RELEASE_TYPE version and tagging commit" npm version $RELEASE_TYPE -# Extract the new version from package.json -NEW_VERSION=$(node -p "require('./package.json').version") - -# Update the version in ../example/package.json -echo "Updating version in ../example/package.json to $NEW_VERSION" -node -p "const fs = require('fs'); const path = '../example/package.json'; const pkg = JSON.parse(fs.readFileSync(path, 'utf8')); pkg.version = '$NEW_VERSION'; fs.writeFileSync(path, JSON.stringify(pkg, null, 2))" - echo "Publishing release to npm" npm publish --access=public echo "Pushing git commit and tag" -# git add package.json ../example/package.json -# git commit -m "Update package.json and example package.json to version $NEW_VERSION" git push --follow-tags -echo "Updating the main branch" +# echo "Pushing git changes to main brach" +# git add package.json +# git commit -m "package.json" # git push origin main echo "Publish successful!" @@ -151,4 +144,4 @@ echo "" create_github_release -echo "Done!" +echo "Done!" \ No newline at end of file