simonw / til

Today I Learned

Home Page:https://til.simonwillison.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy fails silently

simonw opened this issue · comments

https://github.com/simonw/til/runs/6887335796 ran successfully but actually didn't deploy:

/usr/local/lib/node_modules/vercel/dist/index.js:201730
        .filter((b) => Boolean(b.config && b.config.zeroConfig && b.src?.startsWith('api/')))
                                                                        ^
SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47

https://github.com/vercel/vercel/releases/tag/vercel%4025.0.0 says:

This release drops support for Node.js 12 in all packages

But my action does this:

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'

That fixed it.