Skip to content

Commit 015fb5e

Browse files
authored
ci: update .ado/publish.yml to match 0.77-stable --> main (#2572)
## Summary: Our publish pipeline on 0.76-stable was failing due to some mismatched YML. This was updated 0.77+, let's just copy that version down.
1 parent 5348ba6 commit 015fb5e

File tree

1 file changed

+8
-26
lines changed

1 file changed

+8
-26
lines changed

.ado/publish.yml

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# This file defines the build steps to publish a release
21
name: $(Date:yyyyMMdd).$(Rev:.r)
32

43
trigger:
@@ -14,11 +13,15 @@ trigger:
1413
pr: none
1514

1615
variables:
17-
- template: /.ado/variables/vars.yml@self
1816
- group: React-native-macos Secrets
1917
- group: InfoSec-SecurityResults
2018
- name: tags
2119
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
2225

2326
resources:
2427
repositories:
@@ -47,28 +50,7 @@ extends:
4750
# 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.
4851
exclusionPatterns: '**/*.js'
4952
stages:
50-
- stage: main
53+
- stage: NPM
54+
dependsOn: []
5155
jobs:
52-
- job: RNGithubNpmJSPublish
53-
displayName: NPM Publish React-native-macos
54-
pool:
55-
name: cxeiss-ubuntu-20-04-large
56-
image: cxe-ubuntu-20-04-1es-pt
57-
os: linux
58-
variables:
59-
- name: BUILDSECMON_OPT_IN
60-
value: true
61-
timeoutInMinutes: 90 # how long to run the job before automatically cancelling
62-
cancelTimeoutInMinutes: 5 # how much time to give 'run always even if cancelled tasks' before killing them
63-
templateContext:
64-
outputs:
65-
- output: pipelineArtifact
66-
targetPath: $(System.DefaultWorkingDirectory)
67-
artifactName: github-npm-js-publish
68-
steps:
69-
- checkout: self # self represents the repo where the initial Pipelines YAML file was found
70-
clean: true # whether to fetch clean each time
71-
fetchFilter: blob:none # partial clone for faster clones while maintaining history
72-
persistCredentials: true # set to 'true' to leave the OAuth token in the Git config after the initial fetch
73-
74-
- template: /.ado/jobs/npm-publish.yml@self
56+
- template: /.ado/jobs/npm-publish.yml@self

0 commit comments

Comments
 (0)