diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a785969..7741e032 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: uses: changesets/action@v1 with: # This expects you to have a script called release which does a build for your packages and calls changeset publish - # publish: bun release + publish: bun release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 1debc9c3..740d7aec 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ ], "scripts": { "demo": "bun run --cwd demo dev", + "release": "bun run deploy && changeset publish", "build:sdk": "bun run --cwd packages/sdk build", "syncSdkTypes": "bun run --cwd packages/sdk ./scripts/sync-api.mjs", "deploy": "bun build:sdk && bun run --cwd packages/sdk deploy",