Skip to content

Commit

Permalink
use yarn1
Browse files Browse the repository at this point in the history
  • Loading branch information
tjzel committed May 14, 2024
1 parent effe844 commit 52cc804
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/build-monorepo-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,19 @@ jobs:

- name: Enable corepack
run: corepack enable

- name: Set Yarn1
run: corepack prepare yarn@1.22.19

- name: Setup monorepo
working-directory: monorepo
run: |
echo '{"name":"rnos-monorepo-tester","version":"1.0.0","license":"MIT","private":true,"workspaces":{"packages":["RootApp","packages/PackageApp", "AppA", "AppB"],"nohoist":["**/react","**/react-dom","**/react-native","**/react-native/**","**/react-native-codegen","**/react-native-dev-menu"]}}' > package.json
yarn
run: echo '{"name":"rnos-monorepo-tester","version":"1.0.0","license":"MIT","private":true,"workspaces":{"packages":["RootApp","packages/PackageApp", "AppA", "AppB"],"nohoist":["**/react","**/react-dom","**/react-native","**/react-native/**","**/react-native-codegen","**/react-native-dev-menu"]}}' > package.json
- name: Set Yarn1
run: yarn set version yarn@1.22.19
- name: Install dependencies
run: yarn install
- name: Create RootApp
working-directory: monorepo
run: npx react-native init RootApp --skip-install --version 0.73
run: npx react-native@0.73 init RootApp --skip-install --version 0.73
- name: Create PackageApp
working-directory: monorepo/packages
run: npx react-native init PackageApp --skip-install --version 0.73
run: npx react-native@0.73 init PackageApp --skip-install --version 0.73

- name: Install dependencies for RootApp
working-directory: monorepo/RootApp
Expand Down

0 comments on commit 52cc804

Please sign in to comment.