Skip to content

Commit 415e6e3

Browse files
committed
Config RubyGems Bundler in setup script
- add to 'setup' script (DevEx, iOS CI) - skip on Ubuntu CI, only call allow-scripts - prefix bin call with yarn for local deterministic CI exec Ref: react-native-community/template#209
1 parent d1c759f commit 415e6e3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

β€Ž.github/workflows/android.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
# node_modules cache
4343

4444
- name: Install deps and setup
45-
run: yarn && yarn setup
45+
run: yarn && yarn allow-scripts
4646

4747
- name: npx react-native info
4848
run: npx react-native info

β€Ž.github/workflows/main.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1818

1919
- name: Install with Yarn
20-
run: yarn && yarn setup
20+
run: yarn && yarn allow-scripts
2121

2222
- name: Run @lavamoat/git-safe-dependencies
2323
run: yarn git-safe-dependencies

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"setup": "allow-scripts",
6+
"setup": "allow-scripts && yarn setup:gems",
77
"setup:gems": "bundle config set --local path 'vendor/bundle' && bundle config set --local force_ruby_platform true",
88
"allow:auto": "allow-scripts auto",
99
"start": "react-native start",

0 commit comments

Comments
Β (0)