Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .ado/azure-pipelines.publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,21 @@ extends:
version: '22.x'
displayName: 'Use Node.js 22.x'

- script: |
curl -s https://repo.yarnpkg.com/install | bash
echo "##vso[task.prependpath]$(HOME)/.yarn/switch/bin"
displayName: 'Install Yarn Switch'

- script: |
yarn
displayName: 'yarn install'

- script: |
yarn lage buildci
yarn buildci
displayName: 'yarn buildci [build + test + lint]'

- script: |
yarn lage pack --verbose --grouped
yarn tasks run pack
displayName: 'Pack all public packages'

- script: |
Expand Down Expand Up @@ -104,6 +109,11 @@ extends:
version: '22.x'
displayName: 'Use Node.js 22.x'

- script: |
curl -s https://repo.yarnpkg.com/install | bash
echo "##vso[task.prependpath]$(HOME)/.yarn/switch/bin"
displayName: 'Install Yarn Switch'

- task: DownloadPipelineArtifact@2
inputs:
artifactName: packed-tarballs
Expand All @@ -129,7 +139,7 @@ extends:
- script: |
# https://github.com/changesets/changesets/issues/432
# We can't use `changeset publish` because it doesn't support workspaces, so we have to publish each package individually
yarn lage publish --verbose --grouped --reporter azureDevops
yarn tasks run publish
displayName: 'Publish NPM Packages'

- script: |
Expand Down
40 changes: 40 additions & 0 deletions .github/actions/setup-toolchain/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Set up toolchain
description: Sets up Node.js, platform-specific tools, and Yarn Switch

inputs:
platform:
description: Target platform (android, ios, macos, windows)
required: false
default: ''
node-version:
description: Node.js version to use
required: false
default: '22'
xcode-developer-dir:
description: Path to Xcode developer directory (macOS only)
required: false
default: ''

runs:
using: composite
steps:
- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@5.0.14
with:
platform: ${{ inputs.platform }}
node-version: ${{ inputs.node-version }}
xcode-developer-dir: ${{ inputs.xcode-developer-dir }}

- name: Install Yarn Switch
if: runner.os != 'Windows'
shell: bash
run: |
curl -s https://repo.yarnpkg.com/install | bash
echo "$HOME/.yarn/switch/bin" >> $GITHUB_PATH

- name: Install Yarn Switch (Windows)
if: runner.os == 'Windows'
shell: bash
run: |
curl -s https://repo.yarnpkg.com/install | bash
echo "$HOME/.yarn/switch/bin" >> $GITHUB_PATH
34 changes: 15 additions & 19 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
fetch-depth: 0

- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@5.0.14
uses: ./.github/actions/setup-toolchain
with:
node-version: 22

- name: Install dependencies
run: yarn

- name: Build CI
run: yarn lage buildci
run: yarn buildci

android:
name: Android PR
Expand All @@ -39,7 +39,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@5.0.14
uses: ./.github/actions/setup-toolchain
with:
platform: android
node-version: 22
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@5.0.14
uses: ./.github/actions/setup-toolchain
with:
platform: macos
node-version: 22
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@5.0.14
uses: ./.github/actions/setup-toolchain
with:
platform: ios
node-version: 22
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
fetch-depth: 5

- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@5.0.14
uses: ./.github/actions/setup-toolchain
with:
platform: windows
node-version: 22
Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@5.0.14
uses: ./.github/actions/setup-toolchain
with:
platform: windows
node-version: 22
Expand Down Expand Up @@ -280,17 +280,13 @@ jobs:
filter: blob:none
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v6
- name: Set up toolchain
uses: ./.github/actions/setup-toolchain
with:
node-version: '22'
cache: 'yarn'

- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: yarn install --immutable
run: yarn

- name: Validate changesets
run: yarn change:check
Expand All @@ -306,7 +302,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@5.0.14
uses: ./.github/actions/setup-toolchain
with:
node-version: 22

Expand All @@ -317,7 +313,7 @@ jobs:
run: yarn build

- name: Pack packages
run: yarn lage pack --verbose --grouped
run: yarn tasks run pack

- name: List packed tarballs
id: check
Expand Down Expand Up @@ -347,7 +343,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@5.0.14
uses: ./.github/actions/setup-toolchain
with:
node-version: 22

Expand All @@ -361,7 +357,7 @@ jobs:
path: _packed/

- name: Simulate publish
run: yarn lage publish:dry-run --verbose --grouped
run: yarn tasks run publish-dry-run

test-links:
name: Test repo links
Expand All @@ -372,7 +368,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@5.0.14
uses: ./.github/actions/setup-toolchain
with:
node-version: 22

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ apps/*/.vscode/.react/
**/.yarn/*
!**/.yarn/patches
!**/.yarn/plugins
!**/.yarn/releases
!**/.yarn/sdks
!**/.yarn/versions

Expand Down
3 changes: 3 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tools]
node = "22"
yarn = "6.0.0-rc.15"
90 changes: 0 additions & 90 deletions .yarn/plugins/@rnx-kit/yarn-plugin-dynamic-extensions.cjs

This file was deleted.

Loading
Loading