Skip to content

Commit

Permalink
run ntl through yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Mar 18, 2024
1 parent 9af58b3 commit 8c55e40
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions e2e-tests/adapters/scripts/deploy-and-run/netlify.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ if (process.env.E2E_ADAPTERS_NETLIFY_SITE_ID) {
}
process.env.ADAPTER = "netlify"

const deployTitle = `${
process.env.CIRCLE_SHA1 || "N/A commit"
} - trailingSlash:${process.env.TRAILING_SLASH || `always`} / pathPrefix:${
process.env.PATH_PREFIX || `-`
}`
const deployTitle = `${process.env.CIRCLE_SHA1 || "N/A commit"} - ${
process.platform
}/${process.arch} - / trailingSlash:${
process.env.TRAILING_SLASH || `always`
} / pathPrefix:${process.env.PATH_PREFIX || `-`}`

const npmScriptToRun = process.argv[2] || "test:netlify"

// ensure clean build
await execa(`npm`, [`run`, `clean`], { stdio: `inherit` })

const deployResults = await execa(
"ntl",
["deploy", "--build", "--json", "--cwd=.", "--message", deployTitle],
"yarn",
["ntl", "deploy", "--build", "--json", "--cwd=.", "--message", deployTitle],
{
reject: false,
}
Expand Down Expand Up @@ -49,7 +49,8 @@ try {
} finally {
if (!process.env.GATSBY_TEST_SKIP_CLEANUP) {
console.log(`Deleting project with deploy_id ${deployInfo.deploy_id}`)
const deleteResponse = await execa("ntl", [
const deleteResponse = await execa("yarn", [
"ntl",
"api",
"deleteDeploy",
"--data",
Expand Down

0 comments on commit 8c55e40

Please sign in to comment.