Skip to content

Commit

Permalink
build: update release script (akveo#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnixaa authored Jan 10, 2018
1 parent 8db2697 commit 1f25394
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions DEV_DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,19 @@ Documentation is generated by the custom generator built on top of @nebular/them
To start a new release (publish the framework packages on NPM) you need:
1. create a new release branch called `release:v1.0.2`
2. npm run release:prepare - this will create ready for publishing packages in src/.lib
3. npm run release:validate - this will build prod & AOT builds of the playground app using prepared packages in src/.lib and run e2e tests again it.
2. `npm run release:prepare` - this will create ready for publishing packages in src/.lib
3. `npm run release:validate` - this will build prod & AOT builds of the playground app using prepared packages in src/.lib and run e2e tests again it.
4. MANUALLY update a version in main ./package.json to a new one
5.
* npm run version:bump
* `npm run version:bump`
* update `package-lock.json`
* update dependent modules with correct peer module versions
6.
* npm run release:changelog
* `npm run version:changelog`
* fix/expand changelog manually
7. push the branch, create PR, approve - merge
8. pull the upstream (master)
9. npm run release - run prepare & validate and finally publish the packages to NPM
9. `npm run release` - run prepare & validate and finally publish the packages to NPM
10. create and push git tag
11. create release on github
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
"clean:tmp": "rimraf .ng_build .ng_compiled",
"clean:tmp:lib": "npm run clean:tmp && rimraf src/.lib",
"version:bump": "gulp bump",
"version:changelog": "npm run conventional-changelog -- -p angular -i CHANGELOG.md -s",
"release:prepare": "npm run build:package",
"release:changelog": "npm run conventional-changelog -- -p angular -i CHANGELOG.md -s",
"release:validate": "npm run build && npm run release:prepare && npm run lint:ci && npm run build:wp && npm run e2e:wp && npm run test",
"release": "npm run version:bump && npm run release:prepare && npm run release:validate && npm run release:changelog && npm publish --access=public src/.lib/theme && npm publish --access=public src/.lib/auth"
"release": "npm run release:prepare && npm run release:validate && npm publish --access=public src/.lib/theme && npm publish --access=public src/.lib/auth"
},
"keywords": [
"angular",
Expand Down

0 comments on commit 1f25394

Please sign in to comment.