-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
37 lines (36 loc) · 1.21 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
image: node:12
stages:
- test
# TODO: fix this https://gitlab.com/pencillabs/ej/conversation-component/-/issues/1
# - publish
run_tests:
stage: test
script:
- "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
- apt update && apt install git -y
- git clone -b $CI_COMMIT_REF_NAME https://gitlab+deploy-token-147653:[email protected]/pencillabs/ej/conversation-component.git
- cd conversation-component/conversations
- npm install @stencil/core@latest --save-exact && node_modules/@stencil/core/bin/stencil test --spec
artifacts:
paths:
- conversations/
tags:
- osf
# publish_to_npm:
# stage: publish
# variables:
# NPM_TOKEN: "e5585806-c701-4516-8d28-3734184abefa"
# script:
# - cd conversations
# - npm install -g @stencil/core@latest --save-exact && npm install
# - echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
# - make publish
# tags:
# - osf
# only:
# refs:
# - master
# changes:
# # deploy to npm only when package.json changes
# - "conversations/package.json"