From 57cbc9e4fd8da73da2207cf9aa4ef36c6be5ca7d Mon Sep 17 00:00:00 2001 From: LuisEnMarroquin Date: Fri, 17 Dec 2021 21:30:52 -0600 Subject: [PATCH] Trying to create release without creating tag first "If a matching git tag does not yet exist, one will automatically get created from the latest state of the default branch" https://cli.github.com/manual/gh_release_create --- .github/workflows/main.yml | 20 ++++++++++---------- package.json | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b7b112..7a09a5e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,16 +20,16 @@ jobs: echo "TAG_VERSION=$(git describe --abbrev=0)" >> $GITHUB_ENV echo "CURRENT_VERSION=$(node -e "console.log('v' + require('./package.json').version)")" >> $GITHUB_ENV echo Environment has TAG_VERSION ${{ env.TAG_VERSION }} and CURRENT_VERSION ${{ env.CURRENT_VERSION }} - - name: Create tag with Git - if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }} - run: | - git tag -a -m "Published ${{ env.CURRENT_VERSION }}" ${{ env.CURRENT_VERSION }} - git push --follow-tags - - name: Publish package to NPM - if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }} - run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc && npm publish --access public - env: - NPM_AUTH_TOKEN: ${{ secrets.TOKEN_NPM }} + # - name: Create tag with Git + # if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }} + # run: | + # git tag -a -m "Published ${{ env.CURRENT_VERSION }}" ${{ env.CURRENT_VERSION }} + # git push --follow-tags + # - name: Publish package to NPM + # if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }} + # run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc && npm publish --access public + # env: + # NPM_AUTH_TOKEN: ${{ secrets.TOKEN_NPM }} - name: Create GitHub release if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }} run: | diff --git a/package.json b/package.json index cabc5d7..3214871 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "json-as-xlsx", - "version": "2.3.5", + "version": "2.3.6", "main": "index.js", "license": "MIT", "types": "types/index.d.ts",