From 2f36437bb4a881a920a8dfbf238553fe3f56272d Mon Sep 17 00:00:00 2001 From: Khuda Dad Nomani <32505158+KhudaDad414@users.noreply.github.com> Date: Tue, 23 Jan 2024 16:33:13 +0000 Subject: [PATCH] ci: add NPM script for publishing to npm (#921) --- .github/workflows/release.yml | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 539b0c98d..b5dfb1799 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,11 +35,12 @@ jobs: - name: Create Release Pull Request or Release uses: changesets/action@v1 with: - publish: npm run publish + publish: npm run publish-packages version: npm run version-packages commit: "version packages" title: "chore: version packages" env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GIT_AUTHOR_NAME: asyncapi-bot GIT_AUTHOR_EMAIL: info@asyncapi.io diff --git a/package.json b/package.json index aad8c86e8..791b222d1 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "test": "turbo run test", "changeset": "changeset", "version-packages": "changeset version", - "publish": "changeset publish", + "publish-packages": "turbo run build && changeset publish", "build:studio": "turbo run build --no-cache --filter=studio...", "build:ds": "turbo run build --filter=design-system...", "build:studio-next": "turbo run build --no-cache --filter=studio-next..."