From 980bebc0d82d7ac4d1f9907dcfb3cec147386cde Mon Sep 17 00:00:00 2001 From: Seungwoo321 Date: Fri, 20 Jun 2025 08:06:40 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=EB=B2=A0=ED=83=80=20=EB=B2=84?= =?UTF-8?q?=EC=A0=84=EC=9D=B4=20=EC=9E=88=EB=8A=94=20=ED=8C=A8=ED=82=A4?= =?UTF-8?q?=EC=A7=80=EB=A7=8C=20=EB=B9=8C=EB=93=9C/=EB=B0=B0=ED=8F=AC?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - release-packages.cjs에 베타 버전 체크 로직 추가 - changeset이 없는 패키지는 스킵하여 불필요한 빌드 방지 - 각 패키지의 clean 스크립트 추가 및 수정 - plotly-renderer: clean 스크립트 추가 - lazy-table-renderer: lib → dist로 clean 대상 수정 - 모든 빌드 명령어에 clean 단계 포함 --- packages/lazy-table-renderer/package.json | 2 +- packages/plotly-renderer/package.json | 1 + scripts/release-packages.cjs | 17 ++++++++++++++--- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/packages/lazy-table-renderer/package.json b/packages/lazy-table-renderer/package.json index 25d6a29..aa9e2a4 100644 --- a/packages/lazy-table-renderer/package.json +++ b/packages/lazy-table-renderer/package.json @@ -43,7 +43,7 @@ "license": "MIT", "scripts": { "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --scope lazy-table-renderer", - "clean": "rimraf lib", + "clean": "rimraf dist", "build": "vite build", "lint": "eslint ." }, diff --git a/packages/plotly-renderer/package.json b/packages/plotly-renderer/package.json index 313a63e..c3bd94d 100644 --- a/packages/plotly-renderer/package.json +++ b/packages/plotly-renderer/package.json @@ -37,6 +37,7 @@ "author": "Sumin, Lee ", "license": "MIT", "scripts": { + "clean": "rimraf dist", "build": "vite build" }, "dependencies": { diff --git a/scripts/release-packages.cjs b/scripts/release-packages.cjs index dea6313..86dd48c 100755 --- a/scripts/release-packages.cjs +++ b/scripts/release-packages.cjs @@ -25,20 +25,20 @@ const packages = [ { name: 'vue3-pivottable', path: '.', - buildCmd: 'pnpm build', + buildCmd: 'pnpm clean && pnpm build', publishCmd: 'pnpm changeset publish' }, { name: '@vue-pivottable/plotly-renderer', path: './packages/plotly-renderer', - buildCmd: 'pnpm --filter @vue-pivottable/plotly-renderer build', + buildCmd: 'pnpm --filter @vue-pivottable/plotly-renderer clean && pnpm --filter @vue-pivottable/plotly-renderer build', publishCmd: 'pnpm changeset publish --filter @vue-pivottable/plotly-renderer', tokenEnv: 'NPM_TOKEN_SUMIN' }, { name: '@vue-pivottable/lazy-table-renderer', path: './packages/lazy-table-renderer', - buildCmd: 'pnpm --filter @vue-pivottable/lazy-table-renderer build', + buildCmd: 'pnpm --filter @vue-pivottable/lazy-table-renderer clean && pnpm --filter @vue-pivottable/lazy-table-renderer build', publishCmd: 'pnpm changeset publish --filter @vue-pivottable/lazy-table-renderer', tokenEnv: 'NPM_TOKEN_SUMIN' } @@ -62,6 +62,17 @@ async function releasePackages() { throw new Error(`Package directory not found: ${pkg.path}`); } + // Get package version + const packageJsonPath = `${pkg.path}/package.json`; + const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')); + const currentVersion = packageJson.version; + + // Skip if not a beta version (no changeset) + if (!currentVersion.includes('-beta')) { + log.info(`Skipping ${pkg.name} - no beta version (${currentVersion})`); + continue; + } + // Build package log.info(`Building ${pkg.name}...`); execSync(pkg.buildCmd, { From dfb072a04a325caf349bf236bb5476696995581b Mon Sep 17 00:00:00 2001 From: Seungwoo321 Date: Fri, 20 Jun 2025 08:08:26 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=EC=9A=A9=20changeset=20=EC=B6=94=EA=B0=80=20(lazy-table-render?= =?UTF-8?q?er)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/test-release-workflow.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/test-release-workflow.md diff --git a/.changeset/test-release-workflow.md b/.changeset/test-release-workflow.md new file mode 100644 index 0000000..56c1f4b --- /dev/null +++ b/.changeset/test-release-workflow.md @@ -0,0 +1,5 @@ +--- +"@vue-pivottable/lazy-table-renderer": patch +--- + +test: 릴리스 워크플로우 개선 테스트 \ No newline at end of file