forked from microsoft/griffel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
44 lines (35 loc) · 1.46 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
# Release pipeline
pr: none
trigger: none
pool: '1ES-Host-Ubuntu'
workspace:
clean: all
steps:
# For multiline scripts, we want the whole task to fail if any line of the script fails.
# ADO doesn't have bash configured this way by default. To fix we override the SHELLOPTS built-in variable.
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
# The options below include ADO defaults (braceexpand:hashall:interactive-comments) plus
# errexit:errtrace for better error behavior.
- script: |
echo "##vso[task.setvariable variable=shellopts]braceexpand:hashall:interactive-comments:errexit:errtrace"
displayName: Force exit on error (bash)
- task: NodeTool@0
inputs:
versionSpec: '14.x'
checkLatest: true
displayName: 'Install Node.js'
- script: yarn install --frozen-lockfile
displayName: Install dependencies
- script: yarn nx run-many --target=build --all --parallel --max-parallel=3
displayName: Build artifacts
- script: |
git config user.name "Fluent UI Build"
git config user.email "fluentui-internal@service.microsoft.com"
git remote set-url origin https://$(githubUser):$(githubPAT)@github.com/microsoft/griffel.git
displayName: Authenticate git for pushes
- script: |
yarn beachball publish -b origin/main --access public -y -n $(npmTokenTmp)
git reset --hard origin/main
env:
GITHUB_PAT: $(githubPAT)
displayName: Publish to NPM & bump versions