From 4a1c879e4d7f132bfccf16080072a172f90969d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lloren=C3=A7?= Date: Mon, 13 May 2024 10:43:29 +0200 Subject: [PATCH] CR changes --- .github/workflows/nightly.yml | 3 +++ js-library/scripts/update-version.mjs | 12 ++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 7613836..4ce97e1 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -2,6 +2,9 @@ name: Next Publication on: workflow_dispatch: + push: + branches: + - lm-nightly-release jobs: publish: diff --git a/js-library/scripts/update-version.mjs b/js-library/scripts/update-version.mjs index a725b41..d9f553d 100644 --- a/js-library/scripts/update-version.mjs +++ b/js-library/scripts/update-version.mjs @@ -32,13 +32,17 @@ const updateVersion = async () => { return; } - const { version: currentVersion, ...rest } = JSON.parse( - readFileSync(packagePath, "utf-8"), - ); + const { + version: currentVersion, + name: packageName, + ...rest + } = JSON.parse(readFileSync(packagePath, "utf-8")); + + const projectName = packageName.replace("@dfinity/", ""); // Build wip version number const version = await nextVersion({ - project: "hardware-wallet-cli", + project: projectName, currentVersion, });