Skip to content

Commit c931e34

Browse files
Add conditional check for tag-based publishing in CI configuration
1 parent b12839d commit c931e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
if: runner.os != 'Linux'
2828
publish:
2929
needs: build
30+
if: startsWith(github.ref, 'refs/tags/')
3031
runs-on: ubuntu-latest
3132
steps:
3233
- name: Checkout
@@ -38,7 +39,6 @@ jobs:
3839
- run: npm -g install pnpm@latest
3940
- run: pnpm install
4041
- name: Publish
41-
if: startsWith(github.ref, 'refs/tags/')
4242
run: pnpm run deploy
4343
env:
4444
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)