Skip to content

Commit ebefbc0

Browse files
committed
fix: release.yaml
1 parent ff426a6 commit ebefbc0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ jobs:
186186
cd packages/vue-core
187187
pnpm install
188188
pnpm build
189-
pnpm publish --access public --provenance --tag next --no-git-checks || true
189+
VERSION=$(node -p "require('./package.json').version")
190+
TAG=$( [[ "$VERSION" == *-* ]] && echo "--tag next" || echo "" )
191+
pnpm publish --access public --provenance $TAG --no-git-checks || true
190192
191193
upload-svelte-core:
192194
needs: upload-preact-core
@@ -214,4 +216,6 @@ jobs:
214216
cd packages/svelte-core
215217
pnpm install
216218
pnpm build
217-
pnpm publish --access public --provenance --tag next --no-git-checks || true
219+
VERSION=$(node -p "require('./package.json').version")
220+
TAG=$( [[ "$VERSION" == *-* ]] && echo "--tag next" || echo "" )
221+
pnpm publish --access public --provenance $TAG --no-git-checks || true

0 commit comments

Comments
 (0)