From 2783851338aef719fc854fc5d473ed38df450aae Mon Sep 17 00:00:00 2001 From: Mike Pirog Date: Wed, 13 Nov 2024 13:18:37 -0500 Subject: [PATCH] add VPL_MVB_DEV_VERSION to mvb envvars part 2 --- CHANGELOG.md | 1 + utils/get-tags.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fcdae8..5deeeee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }}) * Added `VPL_MVB_DEV_VERSION` to `mvb` envvars +* Improved `get-tags` to prefer `VPL_MVB_DEV_VERSION` as the `dev` alias if available ## v1.1.0-beta.21 - [November 11, 2024](https://github.com/lando/vitepress-theme-default-plus/releases/tag/v1.1.0-beta.21) diff --git a/utils/get-tags.js b/utils/get-tags.js index 1ee735d..19df8c7 100644 --- a/utils/get-tags.js +++ b/utils/get-tags.js @@ -38,7 +38,9 @@ export default function async( const aliases = {dev: 'HEAD', edge: 'HEAD', stable: 'HEAD'}; // get the dev alias - aliases.dev = getStdOut(`${devReleaseCmd.join(' ')} ${getBranch(cwd)} || ${devReleaseCmd.join(' ')}`, opts); + aliases.dev = + process?.env?.VPL_MVB_DEV_VERSION ?? + getStdOut(`${devReleaseCmd.join(' ')} ${getBranch(cwd)} || ${devReleaseCmd.join(' ')}`, opts); // if we have versions data we can reset them to actual tags if (versions.length > 0) {