diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb900194..9f042b36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,9 +26,6 @@ jobs: - name: Build run: pnpm run ci - - name: Publish - run: pnpx pkg-pr-new publish './packages/*' --comment=update --pnpm - biome: name: Check Formatting timeout-minutes: 15 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 953c85a9..7fcca04f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: Setup uses: ./.github/actions/setup - - name: Create Release Pull Request or Publish to npm + - name: Process Changesets id: changesets uses: changesets/action@v1 with: @@ -28,3 +28,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.BUAPEBOT_SECRET }} NPM_TOKEN: ${{ secrets.NPM_SECRET }} + + - name: Publish Beta + run: pnpm run publish:snapshot + env: + GITHUB_TOKEN: ${{ secrets.BUAPEBOT_SECRET }} + NPM_TOKEN: ${{ secrets.NPM_SECRET }} diff --git a/package.json b/package.json index 1f42be9b..6961e9e5 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "lint": "biome check . --write", "preinstall": "npx only-allow pnpm", "publish": "changeset version && pnpm run build && changeset publish", + "publish:snapshot": "changeset version --snapshot beta && pnpm run build && changeset publish --snapshot beta --no-git-tag", "start": "turbo run start --filter !demo-cloudo", "test": "vitest", "web": "pnpm run web:docs && turbo run web:dev",