Skip to content

Commit b14dc6b

Browse files
committed
fix: release.yaml
1 parent 9e05aca commit b14dc6b

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,22 @@ jobs:
4646
cd packages/react-core
4747
pnpm install
4848
pnpm build --mode development
49-
npm publish --access public --provenance || true
49+
VERSION=$(node -p "require('./package.json').version")
50+
TAG=$( [[ "$VERSION" == *-* ]] && echo "--tag next" || echo "" )
51+
npm publish --access public --provenance $TAG || true
5052
5153
- name: upload preact-core
5254
run: |
5355
cd packages/preact-core
5456
pnpm install
5557
pnpm build
56-
npm publish --access public --provenance || true
58+
VERSION=$(node -p "require('./package.json').version")
59+
TAG=$( [[ "$VERSION" == *-* ]] && echo "--tag next" || echo "" )
60+
npm publish --access public --provenance $TAG || true
5761
5862
- name: upload vue-core
5963
run: |
6064
cd packages/vue-core
6165
pnpm install
6266
pnpm build --mode development
63-
npm publish --access public --provenance || true
67+
npm publish --access public --provenance --tag next || true

0 commit comments

Comments
 (0)