Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
ci: Only run release packaging on tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
hangy committed May 2, 2021
1 parent f60f983 commit fa9da7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/buildAndDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
- run: npm run lint
- run: npm run build
- run: npm run package-dev
if: github.event_name == 'pull_request' || github.ref != 'refs/heads/main'
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main'
- run: npm run package-release
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
- name: Upload VSIX Build Artifact
uses: actions/[email protected]
with:
Expand Down

0 comments on commit fa9da7e

Please sign in to comment.