Build server prototype (integration with GitHub / NuGet / etc)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
micro-build-server/BuildServer/lib/tasks/dotnetnugetpack.ts

21 lines
607 B

"use strict";
import { GenericTask } from "../types";
import copy from "./copy";
import dotnetnugetprocessinternal from "./dotnetnugetprocessinternal";
interface IDotNetNuGetPackParameters {
readonly withoutCommitSha?: boolean;
readonly major?: string;
readonly version?: string;
readonly name: string;
readonly nuspec: string;
}
export default ((params) => (processor) => dotnetnugetprocessinternal({
...params,
getFinalTask: (nupkg) => ({
name: "copynupkg",
task: copy({ filename: nupkg }),
}),
})(processor)) as GenericTask<IDotNetNuGetPackParameters>;