-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
46 lines (42 loc) · 1022 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
# SPDX-FileCopyrightText: 2022 Genome Research Ltd.
#
# SPDX-License-Identifier: MIT
include:
- project: "tol/tol-core"
ref: v1.6.0
file: "/gitlab/app.yml"
variables:
APP_NAME: components
DISABLE_UI_LINT: "true"
build-package-dummy:
# prevents the accumulation of errors on `yarn build`
stage: deploy
image: node:18-alpine
script:
- cd components-ui/app/src/tol-ui
- yarn install
- yarn build
except:
- qa
- staging
- production
needs:
- job: review_app
optional: true
- job: build-ui-dev
optional: true
deploy-package:
stage: deploy
image: node:18-alpine
script:
- |
{
echo "@${CI_PROJECT_ROOT_NAMESPACE}:registry=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/"
echo "${CI_API_V4_URL#https?}/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=\${CI_JOB_TOKEN}"
} | tee -a .npmrc
- cd components-ui/app/src/tol-ui
- yarn install
- yarn build
- yarn publish
when: manual
needs: []