Skip to content

Commit 57cbc9e

Browse files
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
1 parent 3cc0ffb commit 57cbc9e

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ jobs:
2020
echo "TAG_VERSION=$(git describe --abbrev=0)" >> $GITHUB_ENV
2121
echo "CURRENT_VERSION=$(node -e "console.log('v' + require('./package.json').version)")" >> $GITHUB_ENV
2222
echo Environment has TAG_VERSION ${{ env.TAG_VERSION }} and CURRENT_VERSION ${{ env.CURRENT_VERSION }}
23-
- name: Create tag with Git
24-
if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }}
25-
run: |
26-
git tag -a -m "Published ${{ env.CURRENT_VERSION }}" ${{ env.CURRENT_VERSION }}
27-
git push --follow-tags
28-
- name: Publish package to NPM
29-
if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }}
30-
run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc && npm publish --access public
31-
env:
32-
NPM_AUTH_TOKEN: ${{ secrets.TOKEN_NPM }}
23+
# - name: Create tag with Git
24+
# if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }}
25+
# run: |
26+
# git tag -a -m "Published ${{ env.CURRENT_VERSION }}" ${{ env.CURRENT_VERSION }}
27+
# git push --follow-tags
28+
# - name: Publish package to NPM
29+
# if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }}
30+
# run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc && npm publish --access public
31+
# env:
32+
# NPM_AUTH_TOKEN: ${{ secrets.TOKEN_NPM }}
3333
- name: Create GitHub release
3434
if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }}
3535
run: |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-as-xlsx",
3-
"version": "2.3.5",
3+
"version": "2.3.6",
44
"main": "index.js",
55
"license": "MIT",
66
"types": "types/index.d.ts",

0 commit comments

Comments
 (0)