From 5261a46e3c86ca4858ea7774645d9337bcf140a2 Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Wed, 2 Jul 2025 10:15:25 +0200 Subject: [PATCH] chore: update CI scripts --- .github/workflows/bump-version.yml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index f28e6b4e..84da4866 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -34,7 +34,7 @@ jobs: - name: Bump version id: bump - run: pnpm run bump-version + run: npx tsx scripts/bump-version.ts - name: Create PR uses: peter-evans/create-pull-request@v7 diff --git a/package.json b/package.json index 13b92ccf..95a770e8 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "test": "turbo run test", "format": "prettier --write \"**/*.{ts,tsx,md}\"", "pr": "gh pr create --fill-first --base dev", - "bump-version": "npx tsx scripts/bump-version.ts", + "merge-main": "gh pr create --title \"merge dev to main\" --body \"\" --base main --head dev", + "bump-version": "gh workflow run .github/workflows/bump-version.yml --ref dev", "publish-all": "pnpm --filter \"./packages/**\" -r publish --access public --tag next", "publish-preview": "pnpm --filter \"./packages/**\" -r publish --tag next --force --registry https://preview.registry.zenstack.dev/", "unpublish-preview": "pnpm --filter \"./packages/**\" -r --shell-mode exec -- npm unpublish -f --registry https://preview.registry.zenstack.dev/ \"\\$PNPM_PACKAGE_NAME\""