Interface ReleaseOptions

    • Method Detail

      • getArtifactsDirectory

        @Stability(Experimental)
        @NotNull
        String getArtifactsDirectory()
        (experimental) A directory which will contain build artifacts.

        Default: "dist"

      • getBranch

        @Stability(Experimental)
        @NotNull
        String getBranch()
        (experimental) The default branch name to release from.

        Use majorVersion to restrict this branch to only publish releases with a specific major version.

        You can add additional branches using addBranch().

      • getTask

        @Stability(Experimental)
        @NotNull
        Task getTask()
        (experimental) The task to execute in order to create the release artifacts.

        Artifacts are expected to reside under artifactsDirectory (defaults to dist/) once build is complete.

      • getVersionFile

        @Stability(Experimental)
        @NotNull
        String getVersionFile()
        (experimental) A name of a .json file to set the version field in after a bump.

        Example:

         "package.json"
         
      • getGithubRelease

        @Stability(Experimental)
        @Nullable
        default Boolean getGithubRelease()
        (experimental) Create a GitHub release for each release.

        Default: true

      • getWorkflowNodeVersion

        @Stability(Experimental)
        @Nullable
        default String getWorkflowNodeVersion()
        (experimental) Node version to setup in GitHub workflows if any node-based CLI utilities are needed.

        For example publib, the CLI projen uses to publish releases, is an npm library.

        Default: 18.x

      • getWorkflowPermissions

        @Stability(Experimental)
        @Nullable
        default JobPermissions getWorkflowPermissions()
        (experimental) Permissions granted to the release workflow job.

        Default: `{ contents: JobPermission.WRITE }`