From 89b5f4dd490c7d8351913abd3b5c26862e267bff Mon Sep 17 00:00:00 2001 From: Nick the Sick Date: Wed, 3 Jul 2024 22:53:35 +0200 Subject: [PATCH] chore: build with publish step --- .github/workflows/publish.yml | 4 +--- package.json | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 528804bca..7bacdd316 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -49,13 +49,11 @@ jobs: - name: Install Dependencies run: npm ci - - name: Build - run: npm run build - - name: Create Release PR or publish stable version to npm id: changesets uses: changesets/action@v1 with: + publish: npm run publish title: ${{ github.ref_name == 'main' && 'Publish a new stable version' || 'Publish a new pre-release version' }} commit: >- ${{ github.ref_name == 'main' && 'chore(release): publish a new release version' || 'chore(release): publish a new pre-release version' }} diff --git a/package.json b/package.json index 1e800641a..d206143ce 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "build:demos": "npm run build:demos --workspace demos", "serve": "npm run build:demos && npm --prefix ./demos run preview", "build:ci": "turbo run build", + "publish": "npm run build && npm run changeset publish", "clean:packages": "rm -rf ./packages/*/dist && rm -rf ./packages/pm/*/dist", "clean:packs": "rm -rf ./packages/*/*.tgz", "reset": "npm run clean:packages && npm run clean:packs && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./package-lock.json && npm install",