File tree 3 files changed +55
-0
lines changed
3 files changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,6 @@ insert_final_newline = true
13
13
trim_trailing_whitespace = true
14
14
indent_style = space
15
15
indent_size = 4
16
+
17
+ [* .yml ]
18
+ indent_size = 2
Original file line number Diff line number Diff line change
1
+ trigger :
2
+ branches :
3
+ include :
4
+ - dev*
5
+ - v2
6
+ pr : none # disable CI build for PR
7
+
8
+ pool :
9
+ vmImage : ' Ubuntu-16.04'
10
+
11
+ steps :
12
+ - task : NodeTool@0
13
+ displayName : ' Use Node 10.x'
14
+ inputs :
15
+ versionSpec : 10.x
16
+
17
+ - task : Npm@1
18
+ displayName : ' npm ci'
19
+ inputs :
20
+ command : custom
21
+ workingDir : .
22
+ verbose : false
23
+ customCommand : ci
24
+
25
+ - task : Bash@3
26
+ displayName : ' Create artifact'
27
+ inputs :
28
+ targetType : filePath
29
+ filePath : ' ./scripts/generate-web-artifact.sh'
30
+
31
+ - task : PublishBuildArtifacts@1
32
+ displayName : ' Publish Artifact: build'
33
+ inputs :
34
+ PathtoPublish : ./build
35
+ ArtifactName : build
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -euo pipefail
3
+
4
+ # NOTE: this script should be ran from the root of the repository; the CWD should reflect this
5
+ VERSION=$( node -pe " require('./package.json').version" )
6
+ COMMIT_SHA=$( git rev-parse --short HEAD)
7
+
8
+ echo " cwd=$( pwd) "
9
+ echo " version=${VERSION} "
10
+ echo " commit=${COMMIT_SHA} "
11
+
12
+ # use by web pack
13
+ export REACT_APP_VERSION=${VERSION}
14
+ export REACT_APP_COMMIT_SHA=${COMMIT_SHA}
15
+
16
+ # npm install will be in a standalone task
17
+ npm run release-web
You can’t perform that action at this time.
0 commit comments