Skip to content

Commit f2ba710

Browse files
committed
ci: move "NPM Publish (Dry Run)" to Github Actions
1 parent 4a29cef commit f2ba710

File tree

3 files changed

+44
-3
lines changed

3 files changed

+44
-3
lines changed

.ado/apple-pr.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ stages:
2626
dependsOn: []
2727
jobs:
2828
- template: /.ado/jobs/test-javascript.yml@self
29-
- template: /.ado/jobs/npm-publish-dry-run.yml@self
3029

3130
# https://github.com/microsoft/react-native-macos/issues/2344
3231
# The Verdaccio server consistently hangs on creation, which is required for the integration tests
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: NPM Publish Dry Run
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- '*-stable'
8+
paths-ignore:
9+
- '*.md'
10+
11+
jobs:
12+
npm-publish-dry-run:
13+
name: "NPM Publish (Dry Run)"
14+
runs-on: ubuntu-24.04
15+
env:
16+
PUBLISH_TAG: 'latest'
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
filter: blob:none
21+
fetch-depth: 0
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: '22'
25+
- name: Configure git
26+
run: |
27+
git config --global user.email "[email protected]"
28+
git config --global user.name "React-Native Bot"
29+
git remote set-url origin https://rnbot:${{ secrets.GITHUB_TOKEN }}@github.com/microsoft/react-native-macos
30+
- name: Install dependencies
31+
run: yarn
32+
- name: Verify release config
33+
run: |
34+
node .ado/scripts/prepublish-check.mjs --verbose --skip-auth --tag ${{ env.PUBLISH_TAG }}
35+
36+
- name: Version and publish packages (dry run)
37+
run: |
38+
echo "Target branch: ${{ github.base_ref }}"
39+
yarn nx release --dry-run --verbose

.github/workflows/microsoft-pr.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: PR
33
on:
44
pull_request:
55
types: [opened, synchronize, edited]
6-
branches: [ "main" ]
6+
branches: [ "main", "*-stable", "release/*" ]
77

88
concurrency:
99
# Ensure single build of a pull request. `main` should not be affected.
@@ -35,4 +35,7 @@ jobs:
3535
name: "Build the website"
3636
permissions: {}
3737
uses: ./.github/workflows/microsoft-build-website.yml
38-
38+
npm-publish-dry-run:
39+
name: "NPM Publish (Dry Run)"
40+
permissions: {}
41+
uses: ./.github/workflows/microsoft-npm-publish-dry-run.yml

0 commit comments

Comments
 (0)