action: Deploy failing
We’re suddenly seeing an error when deploying - here’s the output from GHA:
(node:1943) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/home/runner/work/_actions/deployphp/action/v1/index.js:1
import core from '@actions/core'
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
I guess it was caused by this commit: https://github.com/deployphp/action/commit/ba36add8b14331e5c5f614b5c41bd11cfb0d6eb4
I can supply more our workflow / deployment script if needed.
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 1
- Comments: 18 (4 by maintainers)
Hello, had to revert to 1.0.17 This was the error
Run deployphp/action@v1 with: private-key: *** dep: deploy dev skip-ssh-setup: false ansi: true verbosity: -v $ ssh-agent -a /tmp/ssh-auth.sock SSH_AUTH_SOCK=/tmp/ssh-auth.sock; export SSH_AUTH_SOCK; SSH_AGENT_PID=1729; export SSH_AGENT_PID; echo Agent pid 1729; $ ssh-add - Identity added: (stdin) (admin) Error: Cannot read properties of undefined (reading ‘version’)
Getting a new error there
And my host exists in my deploy.php
Same as for @ashwin-nath-m happens to me:
hotfix
@antonmedv latest release pointing to a non-working version 1.0.18 (as 1.0.12)