-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
azure-pipelines.yml
67 lines (63 loc) · 1.57 KB
/
azure-pipelines.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
variables:
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
trigger:
- master
jobs:
- job: BuildApp
displayName: Build App
pool:
vmImage: 'ubuntu-20.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '18.x'
- script: |
curl -o- -L https://yarnpkg.com/install.sh | bash
displayName: "Install Yarn"
- task: CacheBeta@1
inputs:
key: yarn | $(Agent.OS) | yarn.lock
path: $(YARN_CACHE_FOLDER)
displayName: "Cache Yarn packages"
- task: Bash@3
inputs:
targetType: 'inline'
script: |
set -e
. ci/setup.sh
yarn --frozen-lockfile
noRc: false
displayName: "Install Dependencies"
- bash: |
set -e
. ci/setup.sh
export MSG=$(node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only tools/src/commit-msg.ts)
node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only tools/*/bump-version.ts
yarn global add serve
yarn tools:prepare-lib
yarn build:ci
displayName: 'Build App'
- task: PublishPipelineArtifact@1
inputs:
path: 'dist/alyle-ui'
artifact: WebApp
- job: BuildDocsAndArtifacts
displayName: Build docs & artifacts
pool:
vmImage: 'ubuntu-20.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '18.x'
- bash: |
set -e
yarn build:@alyle/ui
displayName: build:@alyle/ui
- script: |
set -e
yarn tools:docs-api
displayName: Build docs-content
- task: PublishPipelineArtifact@1
inputs:
path: 'dist/@alyle/ui'
artifact: alyle-ui-pkg