Skip to content

Commit

Permalink
Merge pull request #56 from valor-software/develop
Browse files Browse the repository at this point in the history
sync master with development
  • Loading branch information
Georgii Rychko authored Mar 4, 2017
2 parents 33b56e5 + fadd8de commit baed746
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@
"test": "npm run flow.clean && karma start karma.conf.js",
"e2e": "protractor protractor.conf.js",
"test:cover": "COVERAGE=enabled npm run test",
"postinstall": "webdriver-manager update",
"changelog": "conventional-changelog -i CHANGELOG.md -s -p angular",
"github-release": "conventional-github-releaser -p angular",
"preversion": "npm run flow.lint && npm test && npm run e2e",
"version": "npm run changelog && git add CHANGELOG.md",
"postversion": "PUBLISH_ON_NPM=true git push origin master && git push --tags && npm run github-release && node publish.js"
"postversion": "git push origin master && git push --tags && npm run github-release && node publish.js"
},
"devDependencies": {
"@angular/common": "2.4.5",
Expand Down
7 changes: 3 additions & 4 deletions publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const pkg = require('./package.json');
shell.exec('npm run pre:publish');
fs.writeFileSync('dist/package.json', JSON.stringify(_.omit(pkg, ['private']), null, 2), {encoding: 'utf-8'});

if (process.env.PUBLISH_ON_NPM) {
shell.exec('npm publish dist');
shell.exec('npm run post:publish');
}
shell.exec('npm publish dist');
shell.exec('npm run post:publish');

0 comments on commit baed746

Please sign in to comment.