From 54a5b84522e970837ef4cc5e1f6533b18229babf Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 27 Jul 2025 20:40:27 -0700 Subject: Adds npm packpub script --- model/job/index.ts | 9 ++++++++- model/job/jobs.ts | 10 ++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'model/job') 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; -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 = [ '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; -- cgit v1.2.3-70-g09d2