diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index 48f2caf69e..aa31ee0dcf 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -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: | diff --git a/.scripts/bump-version.js b/.scripts/bump-version.js new file mode 100644 index 0000000000..4ef17c089f --- /dev/null +++ b/.scripts/bump-version.js @@ -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());