From 4abcf142770844a0dc0af2568123b64939495e66 Mon Sep 17 00:00:00 2001 From: hoshinotsuyoshi Date: Wed, 4 Dec 2024 15:29:05 +0900 Subject: [PATCH 1/2] Fix build process: call `pnpm build` before release publishing --- .github/workflows/release.yml | 2 +- frontend/.changeset/silent-pots-listen.md | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 frontend/.changeset/silent-pots-listen.md 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 From 2803722abbd98f57b462b9f75ee019873ea51ffb Mon Sep 17 00:00:00 2001 From: hoshinotsuyoshi Date: Wed, 4 Dec 2024 15:30:50 +0900 Subject: [PATCH 2/2] Add `files` field to CLI package and update configurations - Added a `files` field to `cli/package.json` to include `dist-cli/**/*` in the published package. - Updated `.syncpackrc` to sort and include the `files` field for consistent package configuration. - Modified `biome.jsonc` to ignore `package.json` formatting to avoid conflicts with Syncpack. --- frontend/.syncpackrc | 3 ++- frontend/packages/cli/package.json | 5 ++++- frontend/packages/configs/biome.jsonc | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) 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,