Skip to content

Commit 9bb01a6

Browse files
committed
fix: only run deploy packages when a new tag is pushed on main
1 parent 8bfc432 commit 9bb01a6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/packages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
jobs:
1111
deploy-packages:
1212
runs-on: ubuntu-latest
13+
if: startsWith(github.ref, 'refs/tags/') && github.ref_name == 'refs/heads/main'
1314
permissions:
1415
contents: read
1516
steps:

examples/editor/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"zustand": "^4.5.2"
1111
},
1212
"scripts": {
13-
"dev": "vite --host"
13+
"dev": "vite --host",
14+
"build": "vite build"
1415
}
1516
}

0 commit comments

Comments
 (0)