-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion.ts
More file actions
23 lines (21 loc) · 863 Bytes
/
version.ts
File metadata and controls
23 lines (21 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
* Version managed by {@link https://deno.land/x/pub}
*/
export const VERSION = "0.0.1";
/**
* Prepublish hook is called prior to the actual commit/tag of any files.
* The hook is invoked with the upgraded target version for its only argument.
* Returning `false` will abort the publish process before making the commit.
*/
export function prepublish(version: string) {
console.log("Releasing new version: %s...", version);
}
/**
* Postpublish hook is called immediately after successfully pushing the newly
* tagged version to GitHub. This is a good place to run any cleanup procedures
* or to log a success message to the standard output (`console`).
* The hook is invoked with the upgraded version for its only argument.
*/
export function postpublish(version: string) {
console.log("✔️ successfully published version %s!", version);
}