However, I want to tie my deployments to GitHub Actions instead of using Wrangler. I deployed the exact same app in the dashboard under Pages --> Create Project --> Connect to Git (selecting my project with the SvelteKit Template) and I get the following error:
16:28:07.802 (node:1279) ExperimentalWarning: The ESM module loader is experimental.16:28:07.810 file:///opt/buildhome/repo/node_modules/@sveltejs/kit/postinstall.js:816:28:07.810 const cwd = process.env.INIT_CWD ?? process.cwd();16:28:07.810 ^16:28:07.810 16:28:07.810 SyntaxError: Unexpected token '?'16:28:07.811 at Loader.moduleStrategy (internal/modules/esm/translators.js:81:18)16:28:07.811 at async link (internal/modules/esm/module_job.js:37:21)
16:28:07.802 (node:1279) ExperimentalWarning: The ESM module loader is experimental.16:28:07.810 file:///opt/buildhome/repo/node_modules/@sveltejs/kit/postinstall.js:816:28:07.810 const cwd = process.env.INIT_CWD ?? process.cwd();16:28:07.810 ^16:28:07.810 16:28:07.810 SyntaxError: Unexpected token '?'16:28:07.811 at Loader.moduleStrategy (internal/modules/esm/translators.js:81:18)16:28:07.811 at async link (internal/modules/esm/module_job.js:37:21)
How can I get this to work through GitHub actions?