Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 817f4c8

Browse files
author
evombau
committed
Update .gitlab-ci.yml
1 parent c3a85d0 commit 817f4c8

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

.gitlab-ci.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ stages:
33
#- test
44
- npm-publish
55

6-
variables:
7-
VERSION: $(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
8-
9-
build_app:
10-
stage: build
11-
before_script:
12-
- npm install
13-
script:
14-
- cd projects/material-calendar/ && npm install
15-
- ng build material-calendar --prod
16-
artifacts:
17-
expire_in: 1 day
18-
paths:
19-
- dist/
20-
tags:
21-
- node
22-
6+
variables:
7+
VERSION: $(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
8+
9+
build_app:
10+
stage: build
11+
before_script:
12+
- npm install
13+
script:
14+
- cd projects/material-calendar/ && npm install
15+
- ng build material-calendar --prod
16+
artifacts:
17+
expire_in: 1 day
18+
paths:
19+
- dist/
20+
tags:
21+
- node
22+
2323
#test:karma:chrome:
2424
# stage: test
2525
# allow_failure: false
@@ -48,14 +48,14 @@ stages:
4848
# tags:
4949
# - ng-test
5050

51-
build-image:
52-
stage: npm-publish
53-
script:
54-
- touch .npmrc
55-
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
56-
- cd dist/material-calendar
57-
- npm publish
58-
- rm .npmrc
59-
tags:
60-
- docker-build
51+
build-image:
52+
stage: npm-publish
53+
script:
54+
- touch .npmrc
55+
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
56+
- cd dist/material-calendar
57+
- npm publish
58+
- rm .npmrc
59+
tags:
60+
- docker-build
6161

0 commit comments

Comments
 (0)