Skip to content

Commit

Permalink
Merge branch 'tweak-release-script'
Browse files Browse the repository at this point in the history
  • Loading branch information
tanem committed Dec 29, 2015
2 parents cc22e7f + 4770aa4 commit 71584bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions bin/prepublish.js → bin/release.js
Expand Up @@ -19,6 +19,7 @@ exec(`git commit -am "Release v${newSemver}"`);
exec(`git tag v${newSemver}`);
exec('git push');
exec('git push --tags');
exec('npm publish');

function getNewSemver(currentVersion, newVersion) {
let newSemver = semver.valid(newVersion);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -35,8 +35,8 @@
"clean:build": "rimraf dist lib",
"clean:cov": "rimraf coverage",
"lint": "eslint .",
"prepublish": "in-publish && babel-node bin/prepublish || not-in-publish",
"start": "babel-node bin/start.js",
"release": "babel-node bin/release",
"start": "babel-node bin/start",
"test": "npm run lint && npm run clean:cov && karma start karma.config.ci.js",
"test:local": "npm run lint && npm run clean:cov && karma start karma.config.local.js"
},
Expand Down

0 comments on commit 71584bb

Please sign in to comment.