File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : $(Date:yyyyMMdd).$(Rev:.r)
2+
3+ trigger :
4+ batch : true
5+ branches :
6+ include :
7+ - main
8+ - ' *-stable'
9+ paths :
10+ exclude :
11+ - package.json
12+
13+ pr : none
14+
15+ variables :
16+ - group : React-native-macos Secrets
17+ - group : InfoSec-SecurityResults
18+ - name : tags
19+ value : production,externalfacing
20+ # CodeQL Still has not fixed their bug running on Apple ARM64 jobs where they inject x64 binaries into arm64 processes and just make it crash :(
21+ # Only workaround for now is to disable CodeQL on Apple jobs.
22+ - name : Codeql.Enabled
23+ value : false
24+ - template : /.ado/variables/vars.yml@self
25+
26+ resources :
27+ repositories :
28+ - repository : OfficePipelineTemplates
29+ type : git
30+ name : 1ESPipelineTemplates/OfficePipelineTemplates
31+ ref : refs/tags/release
32+
33+ extends :
34+ template : v1/Office.Official.PipelineTemplate.yml@OfficePipelineTemplates
35+ parameters :
36+ pool :
37+ name : Azure-Pipelines-1ESPT-ExDShared
38+ image : windows-latest
39+ os : windows
40+ sdl :
41+ componentgovernance :
42+ ignoreDirectories : $(Build.SourcesDirectory)/packages/helloworld
43+ credscan :
44+ suppressionsFile : .ado/CredScanSuppressions.json
45+ eslint :
46+ configuration : ' recommended'
47+ parser : ' @typescript-eslint/parser'
48+ parserOptions : ' '
49+ enableExclusions : true
50+ # Justification: js files in this repo are flow files. the built-in eslint does not support this. Adding a separate step to run the sdl rules for flow files.
51+ exclusionPatterns : ' **/*.js'
52+ stages :
53+ - stage : NPM
54+ dependsOn : []
55+ jobs :
56+ - template : /.ado/jobs/npm-publish.yml@self
Original file line number Diff line number Diff line change 1+ // @ts -check
2+ import * as fs from "node:fs" ;
3+ import { URL } from "node:url" ;
4+
5+ /**
6+ * @param {string } version
7+ * @returns {string }
8+ */
9+ function coerce ( version ) {
10+ const [ major , minor = 0 ] = version . split ( "-" ) [ 0 ] . split ( "." ) ;
11+ return `${ major } .${ minor } ` ;
12+ }
13+
14+ /**
15+ * @param {string } name
16+ * @param {unknown } value
17+ */
18+ function exportValue ( name , value ) {
19+ console . log ( `##vso[task.setvariable variable=${ name } ]${ value } ` ) ;
20+ }
21+
22+ const manifestPath = new URL ( "../../packages/react-native/package.json" , import . meta. url ) ;
23+ const json = fs . readFileSync ( manifestPath , { encoding : "utf-8" } ) ;
24+ const { dependencies, peerDependencies } = JSON . parse ( json ) ;
25+
26+ exportValue ( "react_version" , peerDependencies [ "react" ] ) ;
27+ exportValue ( "react_native_version" , coerce ( dependencies [ "@react-native/codegen" ] ) ) ;
Original file line number Diff line number Diff line change 5454 id : config
5555 run : |
5656 PUBLISH_TAG=$(jq -r '.release.version.generatorOptions.currentVersionResolverMetadata.tag' nx.json)
57- echo "publishTag=${ PUBLISH_TAG} " >> " $GITHUB_OUTPUT"
58- echo "Using publish tag from nx.json: ${ PUBLISH_TAG} "
57+ echo "publishTag=$PUBLISH_TAG" >> $GITHUB_OUTPUT
58+ echo "Using publish tag from nx.json: $PUBLISH_TAG"
5959 - name : Configure git
6060 run : |
6161 git config --global user.email "53619745+rnbot@users.noreply.github.com"
You can’t perform that action at this time.
0 commit comments