diff --git a/.ado/publish.yml b/.ado/publish.yml index fa24aaf5dee53f..b57595936bb0b2 100644 --- a/.ado/publish.yml +++ b/.ado/publish.yml @@ -107,7 +107,7 @@ jobs: - job: RNMacOSInitNpmJSPublish displayName: react-native-macos-init Publish to npmjs.org pool: - vmImage: vs2017-win2016 + vmImage: ubuntu-18.04 timeoutInMinutes: 90 # how long to run the job before automatically cancelling cancelTimeoutInMinutes: 5 # how much time to give 'run always even if cancelled tasks' before killing them condition: eq(variables['Build.SourceBranchName'], 'main') diff --git a/package.json b/package.json index 210c663dc9bfc7..77691de8c75560 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,6 @@ "scripts/launchPackager.command", "scripts/node-binary.sh", "scripts/packager.sh", - "scripts/postInstall.js", "scripts/react_native_pods.rb", "scripts/react-native-xcode.sh", "template.config.js", @@ -84,8 +83,7 @@ "test-android-e2e": "yarn run docker-build-android && yarn run test-android-run-e2e", "build-ios-e2e": "detox build -c ios.sim.release", "test-ios-e2e": "detox test -c ios.sim.release packages/rn-tester/e2e", - "test-ios": "./scripts/objc-test.sh test", - "postinstall": "node scripts/postInstall.js" + "test-ios": "./scripts/objc-test.sh test" }, "workspaces": [ "packages/!(eslint-config-react-native-community)", diff --git a/scripts/fixmacscripts.sh b/scripts/fixmacscripts.sh deleted file mode 100755 index 419d957530bacd..00000000000000 --- a/scripts/fixmacscripts.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -# npm publish is currently performed on Windows build agents and loses the executable bit on files. -# restore the executable bit during npm postinstall - -echo "Fixing the executable bit on macOS scripts" - -find . -iname \*.sh -exec chmod +x {} \; -find . -iname \*.command -exec chmod +x {} \; diff --git a/scripts/postInstall.js b/scripts/postInstall.js deleted file mode 100644 index b039717770dd24..00000000000000 --- a/scripts/postInstall.js +++ /dev/null @@ -1,6 +0,0 @@ -const child_process = require('child_process'); - -const isMacOS = process.platform === 'darwin'; -if (isMacOS) { - child_process.execSync('source scripts/fixmacscripts.sh', {stdio: 'inherit'}); -}