@@ -14,6 +14,9 @@ variables:
14
14
value : true
15
15
- name : tags
16
16
value : production,externalfacing
17
+ - name : dryRun
18
+ type : boolean
19
+ default : false
17
20
18
21
# TODO set schedule once the pipeline is validated after a few manual releases
19
22
# schedules:
@@ -58,6 +61,11 @@ extends:
58
61
steps :
59
62
- template : .devops/templates/tools.yml@self
60
63
64
+ - script : |
65
+ echo "dry run mode enabled!"
66
+ displayName: dry run mode notification
67
+ condition: eq(variables.dryRun, true)
68
+
61
69
- script : |
62
70
git config user.name "Fluent UI Build"
63
71
git config user.email "[email protected] "
@@ -84,18 +92,21 @@ extends:
84
92
- script : |
85
93
node -r ./scripts/ts-node/src/register ./scripts/executors/src/deprecate-react-components-preview-packages.ts --token $(npmToken)
86
94
displayName: 'Deprecate preview packages'
95
+ condition: eq(variables.dryRun, false)
87
96
88
97
- script : |
89
98
yarn publish:beachball -n $(npmToken) --config scripts/beachball/src/release-vNext.config.js --message 'release: applying package updates - react-components'
90
99
git reset --hard origin/master
91
100
env:
92
101
GITHUB_PAT: $(githubPAT)
93
102
displayName: Publish changes and bump versions
103
+ condition: eq(variables.dryRun, false)
94
104
95
105
- script : |
96
106
node -r ./scripts/ts-node/src/register scripts/executors/src/tag-react-components.ts --token $(npmToken)
97
107
displayName: Tag prelease packages with prerelease tag
98
108
continueOnError: true
109
+ condition: eq(variables.dryRun, false)
99
110
100
111
# Since releases are scoped, this should warn for any packages that were mistakenly not included in scoping
101
112
- script : |
0 commit comments