Skip to content

Commit 375204e

Browse files
committed
test: use branch/alias deploys for e2e test suite
1 parent aa403a4 commit 375204e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

e2e-tests/adapters/scripts/deploy-and-run/netlify.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ const npmScriptToRun = process.argv[2] || "test:netlify"
1818
// ensure clean build
1919
await execa(`npm`, [`run`, `clean`], { stdio: `inherit` })
2020

21+
const deployAlias = 'gatsby-e2e-tests'
2122
const deployResults = await execa(
2223
"npx",
2324
[
2425
"ntl",
2526
"deploy",
2627
"--build",
2728
"--json",
29+
"--alias",
30+
deployAlias,
2831
"--message",
2932
deployTitle,
3033
process.env.EXTRA_NTL_CLI_ARGS ?? "--cwd=.",

0 commit comments

Comments
 (0)