- style & some version fixes

This commit is contained in:
Ulf Gebhardt 2021-02-08 17:14:27 +01:00
parent 09fdae0d95
commit 4943ed4628
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -263,22 +263,25 @@ jobs:
run: echo "BUILD_VERSION=${VERSION}.${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
- name: ENV - BUILD_COMMIT
run: echo "BUILD_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV
# Push tag to GitHub if package.json version's tag is not tagged
- name: package-version
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
##########################################################################
# Push version tag to GitHub #############################################
##########################################################################
- name: package-version-to-git-tag
uses: pkgdeps/git-tag-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_repo: ${{ github.repository }}
version: ${{ env.PACKAGE_VERSION }}
version: ${VERSION}
git_commit_sha: ${{ github.sha }}
git_tag_prefix: "v"
##########################################################################
# Push build tag to GitHub ###############################################
##########################################################################
- name: package-version-to-git-tag + build number
uses: pkgdeps/git-tag-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_repo: ${{ github.repository }}
version: ${{ env.BUILD_VERSION }}
version: ${BUILD_VERSION}
git_commit_sha: ${{ github.sha }}
git_tag_prefix: "b"