Skip to content

Commit

Permalink
ci: update npm-publish config
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernest committed Mar 26, 2024
1 parent a378f26 commit befd8a4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,17 @@ jobs:
tag: latest
access: public
dry-run: false
check-version: true
greater-version-only: true
strategy: all

- name: Tag
if: github.ref_name == 'main' && steps.publish.outputs.type != 'none'
if: github.ref_name == 'main' && steps.publish.outputs.type
uses: anothrNick/github-tag-action@v1
env:
CUSTOM_TAG: ${{ steps.publish.outputs.version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Release
if: github.ref_name == 'main' && steps.publish.outputs.type != 'none'
if: github.ref_name == 'main' && steps.publish.outputs.type
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.publish.outputs.version }}
Expand Down

0 comments on commit befd8a4

Please sign in to comment.