File tree Expand file tree Collapse file tree 2 files changed +31
-3
lines changed Expand file tree Collapse file tree 2 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ stages:
26
26
dependsOn : []
27
27
jobs :
28
28
- template : /.ado/jobs/test-javascript.yml@self
29
- - template : /.ado/jobs/npm-publish-dry-run.yml@self
30
29
31
30
# https://github.com/microsoft/react-native-macos/issues/2344
32
31
# The Verdaccio server consistently hangs on creation, which is required for the integration tests
Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ name: PR
3
3
on :
4
4
pull_request :
5
5
types : [opened, synchronize, edited]
6
- branches : [ "main" ]
6
+ branches : [ "main", "*-stable", "release/*" ]
7
7
8
8
concurrency :
9
9
# Ensure single build of a pull request. `main` should not be affected.
10
10
group : ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.run_id }}
11
11
cancel-in-progress : true
12
12
13
13
jobs :
14
- lint-commit :
14
+ lint-title :
15
15
name : " Lint PR title"
16
16
permissions : {}
17
17
runs-on : ubuntu-latest
34
34
build-website :
35
35
name : " Build the website"
36
36
permissions : {}
37
+ if : github.base_ref == 'main'
37
38
uses : ./.github/workflows/microsoft-build-website.yml
39
+ npm-publish-dry-run :
40
+ name : " NPM Publish (Dry Run)"
41
+ permissions : {}
42
+ runs-on : ubuntu-latest
43
+ env :
44
+ PUBLISH_TAG : ' latest'
45
+ steps :
46
+ - uses : actions/checkout@v4
47
+ with :
48
+ filter : blob:none
49
+ fetch-depth : 0
50
+ - uses : actions/setup-node@v4
51
+ with :
52
+ node-version : ' 22'
53
+ - name : Configure git
54
+ run : |
55
+ git config --global user.email "[email protected] "
56
+ git config --global user.name "React-Native Bot"
57
+ git remote set-url origin https://rnbot:${{ secrets.GITHUB_TOKEN }}@github.com/microsoft/react-native-macos
58
+ - name : Install dependencies
59
+ run : yarn
60
+ - name : Verify release config
61
+ run : |
62
+ node .ado/scripts/prepublish-check.mjs --verbose --skip-auth --tag ${{ env.PUBLISH_TAG }}
38
63
64
+ - name : Version and publish packages (dry run)
65
+ run : |
66
+ echo "Target branch: ${{ github.base_ref }}"
67
+ yarn nx release --dry-run --verbose
You can’t perform that action at this time.
0 commit comments