Publish an Angular project
Steps :
Go to development branch and get latest changes.
- run
git checkout developmentthengit pull
- run
Change to the branch you want to merge to development.
git checkout <branchName>
Merge development -> yourBranch.
git merge development
Check everything is going well.
- Always check crucial files (e.g AppModule, Enviroment etc)
Change to development branch and merge
git merge <branchName>
Delete branches that we don't want any more
Merge development to master
git checkout mastergit merge development
Now we create a Git tag
- Follow Semantic Versioning for your tag
After create our tag we can now push to our repository
git push origin <version tag>
Build application and check that everything is ok.
- Run
ng buildto build the project. Use the--prodflag for a production build. Use ng build--configuration=stagingto build artifacts for staging environment.
- The build artifacts will be stored in the dist/ directory.
