Skip to content

Commit

Permalink
chore: Update publish
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetin committed Jan 17, 2022
1 parent e1c40a6 commit 65978fc
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@ jobs:
- uses: globalid/github-actions/npm-setup@main
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- shell: sh
env:
TAG_NAME: ${{ needs.prepareWorkflow.outputs.tag-name }}
run: npm version --no-git-tag-version --allow-same-version $TAG_NAME
- if: ${{ needs.prepareWorkflow.outputs.release-type == 'release' }}
shell: sh
run: npm publish
- if: ${{ needs.prepareWorkflow.outputs.release-type == 'prerelease' }}
shell: sh
run: npm publish --tag alpha
- uses: globalid/github-actions/npm-publish@main
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
RELEASE_VERSION: ${{ needs.prepareWorkflow.outputs.tag-name }}
RELEASE_TYPE: ${{ needs.prepareWorkflow.outputs.release-type }}

0 comments on commit 65978fc

Please sign in to comment.