Enable legacy OpenSSL provider for viewer build
vue-cli-service pulls in webpack 4, which calls createHash('md4').
OpenSSL 3 (bundled with Node >= 17) removed MD4, so the build now
fails with ERR_OSSL_EVP_UNSUPPORTED on the Node 24 runner. Setting
NODE_OPTIONS=--openssl-legacy-provider re-enables the legacy provider
just for the publish step, which is the documented workaround until
the viewer is migrated off webpack 4.
Made-with: Cursor
This commit is contained in:
parent
0376b99536
commit
f075d0aefb
1 changed files with 4 additions and 0 deletions
4
.github/workflows/viewer-publish.yml
vendored
4
.github/workflows/viewer-publish.yml
vendored
|
|
@ -48,5 +48,9 @@ jobs:
|
|||
# pnpm 10.16+ supports OIDC trusted publishing and rewrites the workspace:../engine
|
||||
# dependency to a real version range; use it directly to avoid bumping the repo-wide
|
||||
# packageManager (currently pnpm 7) which would force a lockfile rewrite.
|
||||
# NODE_OPTIONS=--openssl-legacy-provider works around webpack 4's reliance on MD4,
|
||||
# which OpenSSL 3 (bundled with Node >= 17) no longer supports out of the box.
|
||||
- run: npx -y pnpm@latest publish --access public --no-git-checks
|
||||
env:
|
||||
NODE_OPTIONS: --openssl-legacy-provider
|
||||
- run: git push --follow-tags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue