forked from peradnya/balinese-date-js-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
49 lines (45 loc) · 831 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This file is a template, and might need editing before it works on your project.
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:latest
build:
stage: build
script:
- npm install
- npm run build
artifacts:
expire_in: 1 day
paths:
- node
- umd
test:
stage: test
script:
- npm install
- npm run test:nodejs
dependencies:
- build
pages:
stage: deploy
only:
- tags
dependencies:
- build
script:
- npm install
- npm run doc
- mkdir public
- mv doc/* public
artifacts:
paths:
- public
publish:
stage: deploy
only:
- tags
dependencies:
- build
script:
- npm install
- echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc
- npm publish