Here is a summary from our previous meeting [1] related to this topic.
Apparently the error is caused by the old version of nodejs [2] (usually lower than v6).
This error is on an independent project [3] so normally the NodeJS supported runtimes are the same that with the current series (AFAIK we use NodeJS 10) [4]
This job uses xenial and xenial seems to provide nodejs 4.2.6 [5] that could explain why we see this error.
However, this job inherits from `publish-openstack-artifacts` [6] and this one defines a nodeset based on focal [7] so I wonder why we use xenial here [8].
Notice that focal comes with NodeJS 10.19 [4].
The last execution of this job (`release-openstack-javascript`) was successful but it was 18 months ago [9], unfortunately logs aren't longer available for these builds.
It could be worth seeing which version of ubuntu was used during this period.
Maybe the solution is simply moving this javascript job onto a nodeset based on focal.
Thoughts?