Skip to content

Commit

Permalink
Test npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
h-dong committed Nov 28, 2022
1 parent 2fb4e27 commit 6e057f2
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ jobs:
- uses: ./.github/actions/prepare
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Publish if version has been updated
uses: pascalgn/[email protected]
- uses: JS-DevTools/npm-publish@v1
with:
tag_name: 'v%s'
tag_message: 'v%s'
create_tag: "true"
commit_pattern: "^Release (\\S+)"
publish_command: "pnpm"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
token: ${{ secrets.NPM_AUTH_TOKEN }}
# - name: Publish if version has been updated
# uses: pascalgn/[email protected]
# with:
# tag_name: 'v%s'
# tag_message: 'v%s'
# create_tag: "true"
# commit_pattern: "^Release (\\S+)"
# publish_command: "pnpm"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 6e057f2

Please sign in to comment.