Change how version is parsed

This commit is contained in:
Rory Powell 2022-04-20 17:30:42 +01:00
parent 5b1db40dac
commit 2a50279f54
1 changed files with 6 additions and 4 deletions

View File

@ -70,9 +70,11 @@ jobs:
# echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc
# yarn release:develop
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
- name: Get the latest budibase release version
id: version
run: |
release_version=$(cat lerna.json | jq -r '.version')
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
- name: Publish @budibase/pro package to NPM
env:
@ -83,7 +85,7 @@ jobs:
git config user.email "<>"
cd ../budibase-pro
echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc
yarn release:develop $VERSION
yarn release:develop $RELEASE_VERSION
# - name: Build/release Docker images
# run: |