diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93cf322eb..c618aeb4c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,7 @@ jobs: uses: changesets/action@v1.4.9 with: cwd: ${{ env.working-directory }} - publish: pnpm changeset publish + publish: pnpm build && pnpm changeset publish env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/frontend/.changeset/silent-pots-listen.md b/frontend/.changeset/silent-pots-listen.md new file mode 100644 index 000000000..7d6ec6188 --- /dev/null +++ b/frontend/.changeset/silent-pots-listen.md @@ -0,0 +1,5 @@ +--- +"@liam-hq/cli": patch +--- + +Fix build process: call `pnpm build` before release publishing diff --git a/frontend/.syncpackrc b/frontend/.syncpackrc index 6ea44f18a..18d760587 100644 --- a/frontend/.syncpackrc +++ b/frontend/.syncpackrc @@ -13,7 +13,8 @@ "devDependencies", "peerDependencies", "scripts", - "packageManager" + "packageManager", + "files" ], "sortPackages": true, "semverGroups": [ diff --git a/frontend/packages/cli/package.json b/frontend/packages/cli/package.json index 4bfdbb161..373c85ce6 100644 --- a/frontend/packages/cli/package.json +++ b/frontend/packages/cli/package.json @@ -51,5 +51,8 @@ "lint:biome": "biome check .", "lint:tsc": "tsc --noEmit", "test": "vitest run" - } + }, + "files": [ + "dist-cli/**/*" + ] } diff --git a/frontend/packages/configs/biome.jsonc b/frontend/packages/configs/biome.jsonc index ceed9667a..3a7dd4d0c 100644 --- a/frontend/packages/configs/biome.jsonc +++ b/frontend/packages/configs/biome.jsonc @@ -6,7 +6,8 @@ "formatter": { "enabled": true, "indentStyle": "space", - "lineWidth": 80 + "lineWidth": 80, + "ignore": ["package.json"] // some rules conflict with syncpack }, "linter": { "enabled": true,