Skip to content

Commit

Permalink
Use github action for gitversion
Browse files Browse the repository at this point in the history
  • Loading branch information
MindaugasLaganeckas authored Nov 24, 2020
1 parent dfa004b commit 49918a7
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,17 @@ jobs:
./copy_modules.sh
yarn prepublishOnly
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'

- name: Use GitVersion
id: gitversion # step id used as reference for output values
uses: gittools/actions/gitversion/[email protected]

- name: Get release version
run: |
SEM_VERSION=$(docker run --rm -v "$(pwd):/repo" gittools/gitversion:5.3.5-linux-alpine.3.10-x64-netcoreapp3.1 /repo | jq -r '.SemVer')
echo ::set-env name=RELEASE_VERSION::$(echo ${SEM_VERSION})
run: echo "RELEASE_VERSION=${{ steps.gitversion.outputs.semVer }}" >> $GITHUB_ENV

- name: Prepare release
run: npm version --no-git-tag-version --allow-same-version ${{env.RELEASE_VERSION}}
Expand Down

0 comments on commit 49918a7

Please sign in to comment.