jscutlery / semver

Nx plugin to automate semantic versioning and CHANGELOG generation.
MIT License
727 stars 84 forks source link

Is it possible to exclude some projects when bumping version with synced mode. #770

Open SunStupic opened 8 months ago

SunStupic commented 8 months ago

We have a mixed monorepo. There're some webapps served individually and some libs published to be reused.

I'm using a non-commit style to create tags with release note for each commit on master branch.

{
  "name": "workspace",
  "$schema": "node_modules/nx/schemas/project-schema.json",
  "targets": {
    "version": {
      "executor": "@jscutlery/semver:version",
      "options": {
        "preset": "conventional",
        "tagPrefix": "v",
        "syncVersions": true,
        "skipCommit": true,
        "skipProjectChangelog": true,
        "postTargets": ["workspace:github"]
      }
    },
    "github": {
      "executor": "@jscutlery/semver:github",
      "options": {
        "target": "master",
        "tag": "${tag}",
        "notes": "${notes}"
      }
    },

When commits for the webapps comes to master branch, we don't actually want to log the change log in the tag.

Could I exclude some apps/libs when doing the version command?

edbzn commented 8 months ago

Hi @SunStupic, no it's not possible in the actual state. It would be possible with the grouping support but we don't have it.