Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
frasdav committed Dec 19, 2023
1 parent 85f1c1f commit df82992
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
inputs:
version:
required: false
default: "0.0.0"
default: "v0.0.0"
type: string
outputs:
is_pre_release:
Expand Down
3 changes: 2 additions & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const build = async () => {
const outputsFilePath = process.argv[3];

const isPreRelease = version.endsWith('-pre');
const numbersOnlyVersion = version.replace('v', '');

const tempDirPath = await tempdir();

Expand Down Expand Up @@ -62,7 +63,7 @@ const build = async () => {
const override = {
id: isPreRelease ? `${manifestDefinition.id}PreRelease` : manifestDefinition.id,
name: isPreRelease ? `${manifestDefinition.name} (Pre-Release)` : manifestDefinition.name,
version: isPreRelease ? version.split('-')[0] : version,
version: isPreRelease ? numbersOnlyVersion.split('-')[0] : numbersOnlyVersion,
};

const stdout = await exec(
Expand Down

0 comments on commit df82992

Please sign in to comment.