Hi
First of all i am new to all this stuff , so please bare over with me.
Everytime I commit a project , and building the project via yml , it need to
install the
- npm install -g @angular/cli
- is not a better solution so I do not need to run that step at each build ??
- are there a way where i can push my ‘dist’ directory direct to server without need to build on gitlab server.
my yml file:
image: node:latest
pages:
cache:
paths:
- node_modules/
script:
- npm install
- npm install -g @angular/cli
- ng build
- sed -i ‘s/base href="/base href="/Firstprogram-cli/g’ dist/index.html
- mv dist public
artifacts:
paths:
- public
only:
- master
Best Regards
Kim