Skip to content

Commit 5c193c9

Browse files
committed
chore(*): remove obsolete flag from the release process
1 parent 33b56e5 commit 5c193c9

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"github-release": "conventional-github-releaser -p angular",
5252
"preversion": "npm run flow.lint && npm test && npm run e2e",
5353
"version": "npm run changelog && git add CHANGELOG.md",
54-
"postversion": "PUBLISH_ON_NPM=true git push origin master && git push --tags && npm run github-release && node publish.js"
54+
"postversion": "git push origin master && git push --tags && npm run github-release && node publish.js"
5555
},
5656
"devDependencies": {
5757
"@angular/common": "2.4.5",

publish.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const pkg = require('./package.json');
88
shell.exec('npm run pre:publish');
99
fs.writeFileSync('dist/package.json', JSON.stringify(_.omit(pkg, ['private']), null, 2), {encoding: 'utf-8'});
1010

11-
if (process.env.PUBLISH_ON_NPM) {
12-
shell.exec('npm publish dist');
13-
shell.exec('npm run post:publish');
14-
}
11+
shell.exec('npm publish dist');
12+
shell.exec('npm run post:publish');
13+

0 commit comments

Comments
 (0)