Skip to content

Commit 9ed632e

Browse files
committed
Rollback on PR label
The release script needs the PR title to contain the pinned type (so `css6` for version 6 the `@webref/css` package).
1 parent b8249a1 commit 9ed632e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/prepare-release.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ async function computeDiff(type) {
169169
* pinned to a major version.
170170
*/
171171
async function prepareRelease(type) {
172-
const packageName = type.replace(/\d+$/, '');
173-
174172
// Compute a reasonably unique ID
175173
const uid = (new Date()).toISOString().replace(/[\-T:\.Z]/g, "");
176174

@@ -265,7 +263,7 @@ ${diff.substring(0, 60000)}`;
265263

266264
console.log();
267265
console.log("Prepare pre-release PR title and body");
268-
const title = `📦 Release @webref/${packageName}@${version}`;
266+
const title = `📦 Release @webref/${type}@${version}`;
269267
const body = `
270268
**⚠ NEVER add commits to this pull request.**
271269

0 commit comments

Comments
 (0)