From ff2c254add6a6f71a337d2d8c39e36714bd420f9 Mon Sep 17 00:00:00 2001 From: armando Date: Tue, 30 Jan 2024 14:11:08 -0800 Subject: [PATCH] feat: release commands --- .github/workflows/release.yml | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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",