Skip to content

Commit

Permalink
chore: update app engine version names (#7231)
Browse files Browse the repository at this point in the history
  • Loading branch information
maribethb authored Jun 30, 2023
1 parent a2672a4 commit fa58cba
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions scripts/gulpfiles/appengine_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,8 @@ function deployToAndClean(demoVersion) {
* package.json.
*/
function getDemosVersion() {
const minorVersion = packageJson.version.split('.')[1];
const patchVersion = packageJson.version.split('.')[2];
let demoVersion = minorVersion;
if (patchVersion !== 0) {
demoVersion += '-' + patchVersion;
}
return demoVersion;
// Replace all '.' with '-' e.g. 9-3-3-beta-2
return packageJson.version.replace(/\./g, '-');
}

/**
Expand Down

0 comments on commit fa58cba

Please sign in to comment.