Skip to content

Commit

Permalink
Try testing github release
Browse files Browse the repository at this point in the history
  • Loading branch information
9inpachi committed May 30, 2024
1 parent 99f583f commit 745d80c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: publish-package

on:
push:
workflow_dispatch:
inputs:
increment:
Expand Down Expand Up @@ -61,15 +62,15 @@ jobs:
run: pnpm docs:build

- name: Publish package
if: "${{ inputs.prerelease == 'no' }}"
if: "${{ inputs.prerelease == 'no' || inputs.prerelease == '' }}"
run: pnpm release --increment ${{ inputs.increment }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Prepublish package
if: "${{ inputs.prerelease != 'no' }}"
if: "${{ inputs.prerelease != 'no' && inputs.prerelease != '' }}"
run: pnpm release ${{ inputs.increment }} --preRelease ${{ inputs.prerelease }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
},
"hooks": {
"after:npm:bump": "git add -A"
},
"npm": {
"publish": false
}
}

0 comments on commit 745d80c

Please sign in to comment.