Skip to content

Commit

Permalink
[CI] Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lzm0x219 committed Dec 11, 2022
1 parent 9ebaffa commit 99c5ca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:
run: pnpm install
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
- name: Publish pre-release version
if: success() && startsWith(github.ref, 'refs/tags/') && github.event.type == 'published'
if: success() && github.event.type == 'published'
run: pnpm publish:pre
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: Publish official version
if: success() && startsWith(github.ref, 'refs/tags/') && github.event.type == 'prereleased'
if: success() && github.event.type == 'prereleased'
run: pnpm publish:pre
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 comments on commit 99c5ca8

Please sign in to comment.