Skip to content

Commit

Permalink
trigger publish only if a release is created
Browse files Browse the repository at this point in the history
  • Loading branch information
meldiner committed Oct 29, 2024
1 parent df9036b commit ed8e4de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
publish:
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'release' && github.event.action == 'created'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -36,7 +37,6 @@ jobs:
- name: Install dependencies
run: npm install
- name: Publish
if: success() && startsWith(github.ref, 'refs/tags/')
run: npm run publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
Expand Down

0 comments on commit ed8e4de

Please sign in to comment.