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 2b165e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 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 @@ -64,12 +65,12 @@ jobs:
if: "${{ inputs.prerelease == 'no' }}"
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' }}"
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 2b165e2

Please sign in to comment.