Skip to content

Commit 07cfda6

Browse files
Merge branch 'main' into fix/add-button-property-mouse-events
2 parents f51e3bb + 980ab89 commit 07cfda6

File tree

29 files changed

+290
-115
lines changed

29 files changed

+290
-115
lines changed

.ado/release.yml

Lines changed: 106 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ resources:
2323
branches:
2424
include:
2525
- main
26-
- refs/heads/main
27-
- '*-stable'
28-
- 'refs/heads/*-stable'
26+
- '0.74-stable'
27+
- '0.81-stable'
28+
- '0.82-stable'
29+
- '0.83-stable'
30+
- '0.84-stable'
2931
repositories:
3032
- repository: 1ESPipelineTemplates
3133
type: git
@@ -40,11 +42,109 @@ extends:
4042
image: windows-latest
4143
os: windows
4244
stages:
45+
#
46+
# Gate stage — runs unconditionally for every trigger.
47+
# It determines whether the Release stage should proceed and sets a
48+
# descriptive build number so the pipeline history is easy to scan.
49+
#
50+
- stage: Gate
51+
displayName: Evaluate release
52+
jobs:
53+
- job: Evaluate
54+
displayName: Check if release should proceed
55+
steps:
56+
- checkout: none
57+
58+
- script: |
59+
echo == Build Variables ==
60+
echo Build.Reason: $(Build.Reason)
61+
echo Build.SourceBranch: $(Build.SourceBranch)
62+
echo Build.SourceVersion: $(Build.SourceVersion)
63+
echo Build.SourceVersionMessage: $(Build.SourceVersionMessage)
64+
echo Build.BuildNumber: $(Build.BuildNumber)
65+
echo Build.BuildId: $(Build.BuildId)
66+
echo Build.DefinitionName: $(Build.DefinitionName)
67+
echo Build.Repository.Name: $(Build.Repository.Name)
68+
echo System.TeamProject: $(System.TeamProject)
69+
echo.
70+
echo == Pipeline Resource: Publish ==
71+
echo Publish.runName: $(resources.pipeline.Publish.runName)
72+
echo Publish.runID: $(resources.pipeline.Publish.runID)
73+
echo Publish.sourceBranch: $(resources.pipeline.Publish.sourceBranch)
74+
echo Publish.sourceCommit: $(resources.pipeline.Publish.sourceCommit)
75+
echo Publish.pipelineID: $(resources.pipeline.Publish.pipelineID)
76+
echo Publish.requestedFor: $(resources.pipeline.Publish.requestedFor)
77+
echo Publish.requestedForID: $(resources.pipeline.Publish.requestedForID)
78+
displayName: Log all pipeline variables
79+
80+
- powershell: |
81+
$buildReason = $env:BUILD_REASON
82+
# Use only the first line of the commit message
83+
$sourceMessage = ($env:SOURCE_MESSAGE -split "`n")[0].Trim()
84+
$publishRunName = $env:PUBLISH_RUN_NAME
85+
$sourceBranch = $env:SOURCE_BRANCH -replace '^refs/heads/', ''
86+
87+
# Extract the datestamp (e.g. "20260319.4") from the original build number
88+
# which has the format "RNW NuGet Release 20260319.4"
89+
$originalBuildNumber = $env:BUILD_BUILDNUMBER
90+
$dateStamp = if ($originalBuildNumber -match '(\d{8}\.\d+)$') { $Matches[1] } else { "" }
91+
92+
$shouldRelease = $false
93+
$buildNumber = ""
94+
95+
if ($buildReason -eq "Manual") {
96+
$shouldRelease = $true
97+
if ($publishRunName) {
98+
$buildNumber = "$publishRunName ($sourceBranch) - $dateStamp"
99+
} else {
100+
$buildNumber = "Release ($sourceBranch) - $dateStamp"
101+
}
102+
}
103+
elseif ($sourceMessage.StartsWith("RELEASE:")) {
104+
$shouldRelease = $true
105+
$buildNumber = "$publishRunName ($sourceBranch) - $dateStamp"
106+
}
107+
else {
108+
$shouldRelease = $false
109+
# Truncate commit message for readability
110+
$shortMsg = $sourceMessage
111+
if ($shortMsg.Length -gt 60) {
112+
$shortMsg = $shortMsg.Substring(0, 57) + "..."
113+
}
114+
$buildNumber = "Skipped - $shortMsg ($sourceBranch) - $dateStamp"
115+
}
116+
117+
# Sanitize: ADO build numbers cannot contain " / : < > \ | ? @ *
118+
# and cannot end with '.'
119+
$buildNumber = $buildNumber -replace '["/:<>\\|?@*]', '_'
120+
$buildNumber = $buildNumber.TrimEnd('.')
121+
122+
Write-Host "shouldRelease: $shouldRelease"
123+
Write-Host "buildNumber: $buildNumber"
124+
125+
Write-Host "##vso[build.updatebuildnumber]$buildNumber"
126+
Write-Host "##vso[task.setvariable variable=shouldRelease;isOutput=true]$shouldRelease"
127+
name: gate
128+
displayName: Determine release eligibility and set build number
129+
env:
130+
BUILD_REASON: $(Build.Reason)
131+
BUILD_BUILDNUMBER: $(Build.BuildNumber)
132+
SOURCE_MESSAGE: $(Build.SourceVersionMessage)
133+
PUBLISH_RUN_NAME: $(resources.pipeline.Publish.runName)
134+
SOURCE_BRANCH: $(resources.pipeline.Publish.sourceBranch)
135+
136+
- script: echo Proceeding with release
137+
displayName: RELEASING - proceeding to publish
138+
condition: eq(variables['gate.shouldRelease'], 'True')
139+
140+
- script: echo Skipping release
141+
displayName: SKIPPED - not a RELEASE commit
142+
condition: eq(variables['gate.shouldRelease'], 'False')
143+
43144
- stage: Release
44145
displayName: Publish artifacts
45-
# Allow manual runs unconditionally; for build-completion triggers,
46-
# only proceed if the commit message starts with 'RELEASE:'.
47-
condition: or(eq(variables['Build.Reason'], 'Manual'), startsWith(variables['Build.SourceVersionMessage'], 'RELEASE:'))
146+
dependsOn: Gate
147+
condition: eq(dependencies.Gate.outputs['Evaluate.gate.shouldRelease'], 'True')
48148
jobs:
49149
- job: PushNpm
50150
displayName: npmjs.com - Publish npm packages

.config/1espt/PipelineAutobaseliningConfig.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.
2-
1+
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.
2+
33
pipelines:
44
163759:
55
retail:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,3 +197,4 @@ nul
197197
.store*/*
198198

199199
/npm-pkgs
200+
/.claude/

packages/@react-native-windows/automation-channel/CHANGELOG.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
{
22
"name": "@react-native-windows/automation-channel",
33
"entries": [
4+
{
5+
"date": "Sat, 21 Mar 2026 09:44:24 GMT",
6+
"version": "0.0.0-canary.1038",
7+
"tag": "@react-native-windows/automation-channel_v0.0.0-canary.1038",
8+
"comments": {
9+
"prerelease": [
10+
{
11+
"author": "beachball",
12+
"package": "@react-native-windows/automation-channel",
13+
"comment": "Bump react-native-windows to v0.0.0-canary.1038",
14+
"commit": "not available"
15+
}
16+
]
17+
}
18+
},
419
{
520
"date": "Tue, 17 Mar 2026 18:21:32 GMT",
621
"version": "0.0.0-canary.1037",

packages/@react-native-windows/automation-channel/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# Change Log - @react-native-windows/automation-channel
22

3-
<!-- This log was last generated on Tue, 17 Mar 2026 18:21:32 GMT and should not be manually modified. -->
3+
<!-- This log was last generated on Sat, 21 Mar 2026 09:44:24 GMT and should not be manually modified. -->
44

55
<!-- Start content -->
66

7+
## 0.0.0-canary.1038
8+
9+
Sat, 21 Mar 2026 09:44:24 GMT
10+
11+
### Changes
12+
13+
- Bump react-native-windows to v0.0.0-canary.1038
14+
715
## 0.0.0-canary.1037
816

917
Tue, 17 Mar 2026 18:21:32 GMT

packages/@react-native-windows/automation-channel/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native-windows/automation-channel",
3-
"version": "0.0.0-canary.1037",
3+
"version": "0.0.0-canary.1038",
44
"license": "MIT",
55
"repository": {
66
"type": "git",
@@ -34,7 +34,7 @@
3434
"prettier": "2.8.8",
3535
"react": "19.2.0",
3636
"react-native": "0.83.0-nightly-20251104-502efe1cc",
37-
"react-native-windows": "^0.0.0-canary.1037",
37+
"react-native-windows": "^0.0.0-canary.1038",
3838
"typescript": "5.0.4"
3939
},
4040
"files": [

packages/@react-native-windows/automation-commands/CHANGELOG.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
{
22
"name": "@react-native-windows/automation-commands",
33
"entries": [
4+
{
5+
"date": "Sat, 21 Mar 2026 09:44:24 GMT",
6+
"version": "0.0.0-canary.1038",
7+
"tag": "@react-native-windows/automation-commands_v0.0.0-canary.1038",
8+
"comments": {
9+
"prerelease": [
10+
{
11+
"author": "beachball",
12+
"package": "@react-native-windows/automation-commands",
13+
"comment": "Bump @react-native-windows/automation-channel to v0.0.0-canary.1038",
14+
"commit": "not available"
15+
}
16+
]
17+
}
18+
},
419
{
520
"date": "Tue, 17 Mar 2026 18:21:32 GMT",
621
"version": "0.0.0-canary.1037",

packages/@react-native-windows/automation-commands/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# Change Log - @react-native-windows/automation-commands
22

3-
<!-- This log was last generated on Tue, 17 Mar 2026 18:21:32 GMT and should not be manually modified. -->
3+
<!-- This log was last generated on Sat, 21 Mar 2026 09:44:24 GMT and should not be manually modified. -->
44

55
<!-- Start content -->
66

7+
## 0.0.0-canary.1038
8+
9+
Sat, 21 Mar 2026 09:44:24 GMT
10+
11+
### Changes
12+
13+
- Bump @react-native-windows/automation-channel to v0.0.0-canary.1038
14+
715
## 0.0.0-canary.1037
816

917
Tue, 17 Mar 2026 18:21:32 GMT

packages/@react-native-windows/automation-commands/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native-windows/automation-commands",
3-
"version": "0.0.0-canary.1037",
3+
"version": "0.0.0-canary.1038",
44
"description": "Allows controlling your react-native-windows application",
55
"main": "lib-commonjs/index.js",
66
"license": "MIT",
@@ -18,7 +18,7 @@
1818
"watch": "rnw-scripts watch"
1919
},
2020
"dependencies": {
21-
"@react-native-windows/automation-channel": "0.0.0-canary.1037",
21+
"@react-native-windows/automation-channel": "0.0.0-canary.1038",
2222
"@typescript-eslint/eslint-plugin": "^7.1.1",
2323
"@typescript-eslint/parser": "^7.1.1"
2424
},

packages/@react-native-windows/automation/CHANGELOG.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
{
22
"name": "@react-native-windows/automation",
33
"entries": [
4+
{
5+
"date": "Sat, 21 Mar 2026 09:44:24 GMT",
6+
"version": "0.0.0-canary.1038",
7+
"tag": "@react-native-windows/automation_v0.0.0-canary.1038",
8+
"comments": {
9+
"prerelease": [
10+
{
11+
"author": "beachball",
12+
"package": "@react-native-windows/automation",
13+
"comment": "Bump @react-native-windows/automation-channel to v0.0.0-canary.1038",
14+
"commit": "not available"
15+
}
16+
]
17+
}
18+
},
419
{
520
"date": "Tue, 17 Mar 2026 18:21:32 GMT",
621
"version": "0.0.0-canary.1037",

0 commit comments

Comments
 (0)