diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-07-27 20:40:27 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-07-27 21:11:08 -0700 |
commit | 54a5b84522e970837ef4cc5e1f6533b18229babf (patch) | |
tree | 0df72d44c87797b6b0368e2bd32a50d4e7c39ca9 /model/job | |
parent | 7aa11b7a8abacf81dec20fff21216df35d333756 (diff) | |
download | ci-54a5b84522e970837ef4cc5e1f6533b18229babf.tar.gz ci-54a5b84522e970837ef4cc5e1f6533b18229babf.zip |
Adds npm packpub script
Diffstat (limited to 'model/job')
-rw-r--r-- | model/job/index.ts | 9 | ||||
-rw-r--r-- | model/job/jobs.ts | 10 |
2 files changed, 18 insertions, 1 deletions
diff --git a/model/job/index.ts b/model/job/index.ts index 473b61a..da44528 100644 --- a/model/job/index.ts +++ b/model/job/index.ts @@ -1,13 +1,20 @@ import { isObject } from '@emprespresso/pengueno'; export type JobArgT = Record<string, string>; -export type JobType = 'fetch_code' | 'ci_pipeline' | 'build_docker_image.js' | 'ansible_playbook.js' | 'checkout_ci.js'; +export type JobType = + | 'fetch_code' + | 'ci_pipeline' + | 'build_docker_image.js' + | 'ansible_playbook.js' + | 'checkout_ci.js' + | 'npm_publish.js'; export const JobTypes: Array<JobType> = [ 'fetch_code', 'ci_pipeline', 'build_docker_image.js', 'ansible_playbook.js', 'checkout_ci.js', + 'npm_publish.js', ]; export interface Job { readonly type: JobType; diff --git a/model/job/jobs.ts b/model/job/jobs.ts index dc23070..8c6bdab 100644 --- a/model/job/jobs.ts +++ b/model/job/jobs.ts @@ -11,6 +11,16 @@ export interface FetchCodeJob { readonly arguments: FetchCodeJobProps; } +export interface NpmPublishJobProps extends JobArgT { + readonly source: string; + readonly registry: string; +} + +export interface NpmPublishJob { + readonly type: 'npm_publish.js'; + readonly arguments: NpmPublishJobProps; +} + export interface BuildDockerImageJobProps extends JobArgT { readonly registry: string; readonly namespace: string; |