Skip to content

Commit

Permalink
use origin and master as github references
Browse files Browse the repository at this point in the history
  • Loading branch information
lbalmaceda committed Aug 14, 2020
1 parent 0919eac commit ee8a5e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ if (!newVersion) {
var lastVersionFile = path.resolve(tmp, 'current-version');
fs.writeFileSync(lastVersionFile, libPkg.version);

const branch = process.argv[3];
const branch = process.argv[3] || 'master';

(async () => {
if (branch) {
await exec(`git checkout ${branch}`);
}

await exec('git pull');
await exec('git pull origin master');
await exec(`git checkout -b prepare/${newVersion}`);

const newReadme = fs
Expand Down Expand Up @@ -64,7 +64,7 @@ const branch = process.argv[3];
await exec(`git tag v${newVersion}`);

console.log('Done! Pushing the tag to Github...');
await exec(`git push --tags`);
await exec(`git push origin HEAD --tags`);

await exec('npm run release:clean');
})();

0 comments on commit ee8a5e2

Please sign in to comment.