Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not find path to android/ios projects in monorepo #6

Closed
hebadarweesh1 opened this issue Nov 26, 2023 · 6 comments
Closed

Can not find path to android/ios projects in monorepo #6

hebadarweesh1 opened this issue Nov 26, 2023 · 6 comments

Comments

@hebadarweesh1
Copy link

hebadarweesh1 commented Nov 26, 2023

Having a monoRepo project and trying to change the versions in build.gradle and Info.plist but it can not find the files is there a property similar to pkgRoot found in semantic-release ?

[3:52:37 PM] [semantic-release] [semantic-release-react-native] › ℹ Versioning Android
[3:52:37 PM] [semantic-release] [semantic-release-react-native] › ✘ No file found at /home/runner/work/client-apps/client-apps/android/app/build.gradle
[3:52:37 PM] [semantic-release] [semantic-release-react-native] › ℹ Versioning iOS
[3:52:37 PM] [semantic-release] [semantic-release-react-native] › ✘ No Xcode project file found at /home/runner/work/client-apps/client-apps/ios

My configuration file is
const config = {
branches: ['master'],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
[ '@semantic-release/npm', {
npmPublish: false,
pkgRoot: 'my-app-directory',
},],
[
'semantic-release-react-native', { pkgRoot: 'my-app-directory', },],
[ '@semantic-release/git',
{
assets: [
'my-app-directory/package.json',
'my-app-directory/ios/**/Info.plist',
'my-app-directory/android/app/build.gradle',
],
message:
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
}, ],
'@semantic-release/github', ],};
module.exports = config;

@alexandermendes
Copy link
Owner

Well there's an androidPath and an iosPath that might work for you, see the readme:

https://github.com/alexandermendes/semantic-release-react-native#configuration

@hebadarweesh1
Copy link
Author

hebadarweesh1 commented Nov 27, 2023

It is working just fine for android and updates the build.gradle. However it shows an error while versioning the iOS.

Directory Hierarchy

image

Configuration file

image

Github error while running CI workflow

image

@alexandermendes
Copy link
Owner

If you look at the error it seems it doesn't like something about your pbxproj file. Not entirely sure what, will be coming from https://github.com/NativeScript/pbxproj-dom somewhere

@chriswickham
Copy link

chriswickham commented Jan 8, 2024

I'm also experiencing this issue with the following config:

const config = {
  "branches": ['main'],
  "tagFormat": "${version}",
  "plugins": [
    "@semantic-release/commit-analyzer",
    "semantic-release-react-native",
    ['@semantic-release/changelog', { changeLogFile: 'CHANGELOG.md' }],
    [
      "@semantic-release/git",
      {
        "assets": [
          'CHANGELOG.md',
          'package.json',
          "ios/**/Info.plist",
          "android/app/build.gradle",
        ],
        message: 'chore(release): ${nextRelease.version}\n\n${nextRelease.notes}',
      },
    ],
  ]
}

module.exports = config;

Is there a way to skip changes to the pbxproj file?

@alexandermendes
Copy link
Owner

@alexandermendes
Copy link
Owner

In fact it didn't, however I'll cover any future updates in #7, as the original issue in this one was sorted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants