Skip to content

Commit 397e406

Browse files
authored
Merge pull request #231 from vue-pivottable/fix/beta-tag-publishing
fix: npm 배포 태그 및 베타 체크 로직 개선
2 parents 131b20f + 47d4f39 commit 397e406

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@vue-pivottable/plotly-renderer": patch
3+
---
4+
5+
fix: npm 배포 태그 수정 및 정식 버전 배포 문제 해결

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ jobs:
246246
fs.readdirSync(packagesDir).forEach(dir => {
247247
const pkgPath = path.join(packagesDir, dir, 'package.json');
248248
if (fs.existsSync(pkgPath)) {
249-
const pkg = require(pkgPath);
249+
const pkg = require(path.resolve(pkgPath));
250250
packages += \`\\n- \${pkg.name}@\${pkg.version}\`;
251251
}
252252
});

scripts/release-packages.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ async function releasePackages() {
7171
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
7272
const currentVersion = packageJson.version;
7373

74-
// Skip if not a beta version (no changeset)
75-
if (!currentVersion.includes('-beta')) {
74+
// Skip non-beta versions only when publishing with beta tag
75+
if (releaseTag === 'beta' && !currentVersion.includes('-beta')) {
7676
log.info(`Skipping ${pkg.name} - no beta version (${currentVersion})`);
7777
continue;
7878
}

0 commit comments

Comments
 (0)