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

Conditionally load plugin per package ? #94

Closed
jbsouvestre opened this issue Dec 18, 2023 · 2 comments
Closed

Conditionally load plugin per package ? #94

jbsouvestre opened this issue Dec 18, 2023 · 2 comments
Labels

Comments

@jbsouvestre
Copy link

Hey,

I'm trying to implement semantic release on an NX monorepo that contains both javascript and python packages, this is achieved on the python side using @nxlv/python and hopefully semantic-release-pypi

However, it seems that the pypi plugin is picking up the javascript packages.

Is there a way to tell nx-semantic-release to only load the pypi plugin on specific packages (via project tag or something) ?

More generally, is it possible to conditionally load plugins per package ?

Thanks

@TheUnderScorer
Copy link
Owner

Hey @jbsouvestre!

I don't fully understand the issue here. You can use specific project.json to provide additional configuration per project, this includes plugins:

{
  "name": "nx-semantic-release",
  "$schema": "../../node_modules/nx/schemas/project-schema.json",
  "sourceRoot": "packages/nx-semantic-release/src",
  "projectType": "library",
  "targets": {
    "semantic-release": {
      "executor": "@theunderscorer/nx-semantic-release:semantic-release",
      "options": {
           "plugins" [...]
        }
      }
    }
  }
}

Let me know if that helps!

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 3 days.

@github-actions github-actions bot added the Stale label Jan 25, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants