Skip to content

Commit 16b0577

Browse files
Fix/open ssl error (#243)
* fix: set NODE_OPTIONS to use legacy ssl to fix build script * feat: upgrade gh action node version to 18.12.1
1 parent d0a00da commit 16b0577

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/pr-actions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- uses: actions/checkout@v3
6767
- uses: actions/setup-node@v3
6868
with:
69-
node-version: "16.17.0"
69+
node-version: "18.12.1"
7070
cache: 'npm'
7171
# https://github.com/cypress-io/github-action
7272
- uses: cypress-io/github-action@v4

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
"description": "The deepest card game under the sea",
66
"scripts": {
77
"_lint": "vue-cli-service lint --ext .js,.ts,.vue .",
8-
"build": "vue-cli-service build && cp ./client/public/favicon.ico ./assets",
8+
"build": "cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build && cp ./client/public/favicon.ico ./assets",
99
"test:unit": "vue-cli-service test:unit",
1010
"lint": "npm run _lint -- --no-fix",
1111
"lint:fix": "npm run _lint -- --fix",
1212
"debug": "node debug app.js",
1313
"e2e:client": "npx cypress run --config-file tests/cypress.config.js",
1414
"e2e:gui": "cross-env ENABLE_VUE_DEVTOOLS=true npx cypress open --config-file tests/cypress.config.js",
15-
"e2e:mockprod": "cross-env CUTTLE_ENV=production npm run e2e:server",
15+
"e2e:mockprod": "cross-env NODE_OPTIONS=--openssl-legacy-provider CUTTLE_ENV=production npm run e2e:server",
1616
"e2e:server": "cross-env VUE_APP_API_URL=http://localhost:1337 npx cypress run --config-file tests/cypress.config.js",
1717
"e2e:server:gui": "cross-env VUE_APP_API_URL=http://localhost:1337 npx cypress open --config-file tests/cypress.config.js",
1818
"start": "node app.js",
1919
"start:client": "cross-env ENABLE_VUE_DEVTOOLS=true vue-cli-service serve",
2020
"start:dev": "concurrently \"npm run start:server\" \"npm run start:client\"",
2121
"start:devtools": "vue-devtools",
22-
"start:mockprod": "cross-env CUTTLE_ENV=production npm run build && CUTTLE_ENV=production npm run start:server",
23-
"start:mockprod:tools": "concurrently \"cross-env NODE_ENV=dev ENABLE_VUE_DEVTOOLS=true npm run build && npm run start:server\" \"npm run start:devtools\"",
22+
"start:mockprod": "cross-env NODE_OPTIONS=--openssl-legacy-provider CUTTLE_ENV=production npm run build && CUTTLE_ENV=production npm run start:server",
23+
"start:mockprod:tools": "concurrently \"cross-env NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=dev ENABLE_VUE_DEVTOOLS=true npm run build && npm run start:server\" \"npm run start:devtools\"",
2424
"start:server": "node app.js --inspect",
2525
"storybook": "start-storybook -p 6006",
2626
"build-storybook": "build-storybook"

0 commit comments

Comments
 (0)