forked from tonyduanesmith/react-apple-mapkitjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
71 lines (66 loc) · 1.1 KB
/
.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
stages:
- build
- docs
- publish
- code-intelligence
workflow:
rules:
- if: $CI_COMMIT_BRANCH
build-lib:
image: node:lts
stage: build
before_script:
- npm install
script:
- npm run lib
tags:
- docker
artifacts:
paths:
- lib/*
needs: []
build-docs:
image: node:lts
stage: docs
before_script:
- npm install
script:
- npm run docs:prod
tags:
- docker
artifacts:
paths:
- docs/*
needs:
- job: build-lib
artifacts: true
publish:
image: node:lts
stage: publish
before_script:
- npm install
script:
- npm run semantic-release
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .npm/
tags:
- docker
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /chore(release)$/
needs:
- job: build-lib
artifacts: true
- job: build-docs
code-navigation:
image: git.zsinfo.nl:5010/zandor300/docker-lsif
stage: code-intelligence
script:
- lsif-tsc src/**/* --AllowJs --checkJs
tags:
- docker
artifacts:
reports:
lsif: dump.lsif
needs: []