name := "sbt-typelevel"

ThisBuild / organization := "org.typelevel"
ThisBuild / organizationName := "Typelevel"

ThisBuild / scalaVersion := "2.12.15"

lazy val root = project.in(file(".")).enablePlugins(NoPublishPlugin)

lazy val noPublish = project
  .in(file("no-publish"))
  .enablePlugins(SbtPlugin)
  .settings(
    name := "sbt-typlevel-no-publish"
  )

name := "sbt-typelevel"

ThisBuild / organization := "org.typelevel"
ThisBuild / organizationName := "Typelevel"

ThisBuild / scalaVersion := "2.12.15"

lazy val root = project.in(file("."))

lazy val noPublish = project
  .in(file("no-publish"))
  .enablePlugins(SbtPlugin, NoPublishPlugin)
  .settings(
    name := "sbt-typlevel-no-publish"
  )

--- 
+++ 
@@ -5,11 +5,11 @@
 
 ThisBuild / scalaVersion := "2.12.15"
 
-lazy val root = project.in(file("."))
+lazy val root = project.in(file(".")).enablePlugins(NoPublishPlugin)
 
 lazy val noPublish = project
   .in(file("no-publish"))
-  .enablePlugins(SbtPlugin, NoPublishPlugin)
+  .enablePlugins(SbtPlugin)
   .settings(
     name := "sbt-typlevel-no-publish"
   )
Use no-publish on root actually :)
