best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
version-info: return git branch info correctly in cf workers
wukkoa751f81ea340
diff --git a/packages/version-info/index.js b/packages/version-info/index.jsindex 3ac1bd3e..a1f74968 100644--- a/packages/version-info/index.js+++ b/packages/version-info/index.js@@ -39,6 +39,10 @@ export const getBranch = async () => {return process.env.CF_PAGES_BRANCH;}+ if (process.env.WORKERS_CI_BRANCH) {+ return process.env.WORKERS_CI_BRANCH;+ }+return (await readGit('.git/HEAD'))?.replace(/^ref: refs\/heads\//, '')?.trim();diff --git a/packages/version-info/package.json b/packages/version-info/package.jsonindex e82a6201..018b6a2e 100644--- a/packages/version-info/package.json+++ b/packages/version-info/package.json@@ -1,6 +1,6 @@{"name": "@imput/version-info",- "version": "1.0.0",+ "version": "1.0.1","description": "helper package for cobalt that provides commit info & version from package file.","main": "index.js","types": "index.d.ts",