Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-navigation",
"version": "8.7.0",
"version": "8.7.9",
"description": "React Native Navigation - truly native navigation for iOS and Android",
"license": "MIT",
"nativePackage": true,
Expand Down
20 changes: 19 additions & 1 deletion scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,31 @@ function readPackageJson() {
}

function updatePackageJsonGit(version) {
const prBranch = `ci/update-version-${version}`;
exec.execSync(`git checkout ${BRANCH}`);
exec.execSync(`git checkout -b ${prBranch}`);
const packageJson = readPackageJson();
packageJson.version = version;
writePackageJson(packageJson);
exec.execSync(`git add package.json`);
exec.execSync(`git commit -m"Update package.json version to ${version} [buildkite skip]"`);
exec.execSync(`git push deploy ${BRANCH}`);
exec.execSync(`git push deploy ${prBranch}`);

const prData = JSON.stringify({
title: `Update package.json version to ${version}`,
head: prBranch,
base: BRANCH,
body: `Automated version bump to ${version} from CI release.`,
});

cp.execSync(
`curl -s -X POST ` +
`-H "Authorization: token ${process.env.GIT_TOKEN}" ` +
`-H "Content-Type: application/json" ` +
`-d '${prData}' ` +
`https://api.github.com/repos/wix/react-native-navigation/pulls`
);

draftGitRelease(version);
}

Expand Down