diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b7cd5eb0c..9c6a05bf2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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" \ No newline at end of file