diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ec86bb9..0ac7953 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,7 +29,7 @@ jobs: - name: Create Release Pull Request or Publish uses: changesets/action@v1 with: - publish: pnpm run build && pnpm run release + publish: pnpm run release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index af03990..adf99c9 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "build": "pnpm run -r build", "test": "pnpm run -r test", "typecheck": "pnpm run -r typecheck", - "release": "changeset publish" + "release": "pnpm run build && changeset publish" }, "keywords": [], "license": "MIT",