Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 99aed6f

Browse files
build: add support for experimental releases (#712)
1 parent 2cfc1cd commit 99aed6f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/build-npm.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ function buildPackageJSON() {
6161

6262
if (preReleaseTag != null) {
6363
const [tag] = preReleaseTag.split('.');
64-
assert(['alpha', 'beta', 'rc'].includes(tag), `"${tag}" tag is supported.`);
64+
assert(
65+
tag.startsWith('experimental-') || ['alpha', 'beta', 'rc'].includes(tag),
66+
`"${tag}" tag is supported.`,
67+
);
6568

6669
assert(!packageJSON.publishConfig, 'Can not override "publishConfig".');
6770
packageJSON.publishConfig = { tag: tag || 'latest' };

0 commit comments

Comments
 (0)