From 7c15c2c14e82427d4c993d77c6980295cbc89563 Mon Sep 17 00:00:00 2001 From: Damian Tarnawski Date: Wed, 1 Nov 2023 22:19:19 +0100 Subject: [PATCH] Correct realease scripts --- .github/workflows/release.yml | 4 ++-- package.json | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14871d13..7ef73787 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,8 +38,8 @@ jobs: id: changesets uses: changesets/action@v1 with: - version: pnpm run changeset version && pnpm i --no-frozen-lockfile && git add . - publish: pnpm run build && pnpm run changeset publish + version: pnpm run version + publish: pnpm run publish env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index f7586fb5..3c8d81dd 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,9 @@ "build-test:packages": "turbo run build test:unit test:types --filter=./packages/*", "build-test": "pnpm run build-test:packages && pnpm run test:lint && pnpm run test:e2e", "format": "prettier -w ./{packages,examples}/**/*.{js,ts,json,css,tsx,jsx} --ignore-path .gitignore", - "changeset": "changeset" + "changeset": "changeset", + "version": "pnpm run changeset version && pnpm i --no-frozen-lockfile && git add .", + "publish": "pnpm run build && pnpm run changeset publish" }, "devDependencies": { "@changesets/cli": "^2.26.2",