chore(dev-build): bump patch version for lerna dev builds (#24564)

This commit is contained in:
Liam DeBeasi
2022-01-12 10:05:08 -05:00
committed by GitHub
parent f5b4382fd5
commit 88602a9acf
2 changed files with 11 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ jobs:
run: |
echo "HASH=$(git log -1 --format=%H | cut -c 1-7)" >> $GITHUB_ENV
echo "TIMESTAMP=$(date +%s)" >> $GITHUB_ENV
echo "CURRENT_VERSION=$(node -p -e "require('./core/package.json').version")" >> $GITHUB_ENV
echo "CURRENT_VERSION=$(node ./.scripts/bump-version.js)" >> $GITHUB_ENV
shell: bash
- name: Create Dev Build
run: |

10
.scripts/bump-version.js Normal file
View File

@@ -0,0 +1,10 @@
const semver = require('semver');
const getDevVersion = () => {
const originalVersion = require('../lerna.json').version;
const baseVersion = semver.inc(originalVersion, 'patch');
return baseVersion;
}
console.log(getDevVersion());