Skip to content

Commit f3b47ae

Browse files
clydinKeen Yee Liau
authored andcommitted
test: always allow local E2E publishing
Without this change and if master is not on a prerelease version, E2E will fail due to the local package repository publish failing.
1 parent 17c10d1 commit f3b47ae

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/legacy-cli/e2e/setup/010-local-publish.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@ export default async function() {
99
fs.writeFileSync('.npmrc', 'registry = http://localhost:4873', 'utf8');
1010

1111
try {
12-
const publishArgs = ['run', 'admin', '--', 'publish', '--versionCheck', 'false'];
12+
const publishArgs = [
13+
'run',
14+
'admin',
15+
'--',
16+
'publish',
17+
'--versionCheck',
18+
'false',
19+
'--branchCheck',
20+
'false',
21+
];
1322
if (pre && pre.length > 0) {
1423
publishArgs.push('--tag');
1524
publishArgs.push('next');

0 commit comments

Comments
 (0)