Skip to content

Commit

Permalink
fix: Port publish pipeline changes from 0.74 and 0.75 stable branches (
Browse files Browse the repository at this point in the history
  • Loading branch information
Saadnajmi authored Aug 30, 2024
1 parent 3d5ba58 commit aa9817a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .ado/publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# It is expected that a `latestStableBranch` variable is set in the pipeline's settings:

# This file defines the build steps to publish a release
name: $(Date:yyyyMMdd).$(Rev:.r)

Expand All @@ -21,6 +19,9 @@ variables:
- group: InfoSec-SecurityResults
- name: tags
value: production,externalfacing
# Remember to update this in previous stable branches when creating a new stable branch
- name : latestStableBranch
value: '0.75-stable'

resources:
repositories:
Expand Down Expand Up @@ -137,7 +138,6 @@ extends:
os: linux
timeoutInMinutes: 90 # how long to run the job before automatically cancelling
cancelTimeoutInMinutes: 5 # how much time to give 'run always even if cancelled tasks' before killing them
condition: eq(variables['Build.SourceBranchName'], 'main')
templateContext:
outputs:
- output: pipelineArtifact
Expand Down
8 changes: 3 additions & 5 deletions .ado/templates/apple-steps-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@ steps:
# Note, This won't do the actual `git tag` and `git push` as we're doing a dry run.
# We do that as a separate step in `.ado/publish.yml`.
- task: CmdLine@2
displayName: Prepare package for release
displayName: Prepare React Native macOS release
inputs:
script: |
node ./scripts/prepare-package-for-release.js -v "$RNM_PACKAGE_VERSION" --dry-run
env:
# Map the corresponding CircleCI variable since `prepare-package-for-release.js` depends on it.
CIRCLE_BRANCH: $(Build.SourceBranchName)
set -eox pipefail
node scripts/releases/set-rn-version.js -v $RNM_PACKAGE_VERSION --build-type "release"
# Note: This won't actually publish to NPM as we've commented that bit out.
# We do that as a separate step in `.ado/publish.yml`.
Expand Down

0 comments on commit aa9817a

Please sign in to comment.