From f45334165a5fb8b499bc2a4cadaf3c495414d0fb Mon Sep 17 00:00:00 2001 From: Gustav Eikaas Date: Tue, 5 Nov 2024 13:39:40 +0100 Subject: [PATCH] . --- apps/handover/src/main.tsx | 1 - github-action/src/releasePr.ts | 2 +- github-action/src/utils/makeManifest.ts | 10 +++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/apps/handover/src/main.tsx b/apps/handover/src/main.tsx index 87243fc1c..4539d7a09 100644 --- a/apps/handover/src/main.tsx +++ b/apps/handover/src/main.tsx @@ -6,7 +6,6 @@ const HandoverApp = () => { const client = useHttpClient('cc-app'); return ( -
New pipeline woohooo
); diff --git a/github-action/src/releasePr.ts b/github-action/src/releasePr.ts index 66f9ef0dc..1cfdd23ce 100644 --- a/github-action/src/releasePr.ts +++ b/github-action/src/releasePr.ts @@ -58,7 +58,7 @@ export async function release(context: ReleaseArgs) { } const version = await getVersion(ciUrl, context.token, r.name); - makeManifest('./package.json', version); + makeManifest('./package.json', version, context.sha); const zipped = zipBundle(); await uploadBundle(ciUrl, context.token, r.name, zipped, version); console.log("Skipping patchAppConfig"); diff --git a/github-action/src/utils/makeManifest.ts b/github-action/src/utils/makeManifest.ts index 82295fb53..7ceaf1236 100644 --- a/github-action/src/utils/makeManifest.ts +++ b/github-action/src/utils/makeManifest.ts @@ -2,7 +2,7 @@ import { parsePackageJson } from './parsePackageJson.js'; import fs from 'fs'; import { notice } from '@actions/core'; -export function makeManifest(path: string, version: string) { +export function makeManifest(path: string, version: string, sha: string) { // Create manifest notice('making manifest'); const { name } = parsePackageJson(path); @@ -13,11 +13,11 @@ export function makeManifest(path: string, version: string) { //required entryPoint: "app-bundle.js", //required - version: version + version: version, + githubRepo: "cc-components", //TODO: add commit sha and github repo - //timestamp: "string", - //commitSha: "string", - //githubRepo: "string", + timestamp: new Date().toISOString(), + commitSha: sha, }; const data = JSON.stringify(manifest, null, 2);