Skip to content

Commit 150b5f2

Browse files
committed
chore: only create changelog for regular releases
1 parent b1b54a2 commit 150b5f2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/publish.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ async function publish() {
8080
'yarn workspace @spectrum-web-components/1st-gen build:confirm',
8181
'Confirming build artifacts'
8282
);
83-
run(
84-
'yarn workspace @spectrum-web-components/1st-gen changelog:global',
85-
'Updating global changelog'
86-
);
8783

8884
// Step 2: Version bump with changesets
8985
if (args.snapshot) {
@@ -92,6 +88,11 @@ async function publish() {
9288
`Versioning packages (snapshot: ${args.tag})`
9389
);
9490
} else {
91+
// Update changelog before versioning and only for regular releases
92+
run(
93+
'yarn workspace @spectrum-web-components/1st-gen changelog:global',
94+
'Updating global changelog'
95+
);
9596
run('yarn changeset version', 'Versioning packages');
9697
}
9798
// Step 3: Update version file for 2nd-gen

0 commit comments

Comments
 (0)