File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 7373 cache : ' npm'
7474 cache-dependency-path : ' src/js-host-api/package-lock.json'
7575
76- - name : Validate version format
77- run : node -e "if (!/^\d+\.\d+\.\d+(-[a-zA-Z0-9.]+)?$/.test(process.env.VERSION)) { console.error('Invalid version:', process.env.VERSION); process.exit(1); }"
78- env :
79- VERSION : ${{ inputs.version }}
80-
8176 - name : Install dependencies
8277 working-directory : ${{ env.WORKING_DIR }}
8378 run : npm ci --ignore-scripts --omit=optional
@@ -120,7 +115,7 @@ jobs:
120115 cache-dependency-path : ' src/js-host-api/package-lock.json'
121116
122117 - name : Validate version format
123- run : node -e "if (!/^\d+\.\d+\.\d+(-[a-zA-Z0-9.]+)?$/.test(process.env.VERSION)) { console.error(' Invalid version:', process.env. VERSION); process. exit(1) ; }"
118+ run : npx --yes semver "$VERSION" >/dev/null 2>&1 || { echo " Invalid version: $ VERSION"; exit 1 ; }
124119 env :
125120 VERSION : ${{ inputs.version }}
126121
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ node_modules/
88target /
99Cargo.lock
1010* .tgz
11+ * .node
1112npm-debug.log *
1213yarn-debug.log *
1314yarn-error.log *
Original file line number Diff line number Diff line change 2222 },
2323 "license" : " Apache-2.0" ,
2424 "optionalDependencies" : {
25- "@hyperlight/js-host-api-linux-x64-gnu" : " 0.17.0 " ,
26- "@hyperlight/js-host-api-linux-x64-musl" : " 0.17.0 " ,
27- "@hyperlight/js-host-api-win32-x64-msvc" : " 0.17.0 "
25+ "@hyperlight/js-host-api-linux-x64-gnu" : " workspace:* " ,
26+ "@hyperlight/js-host-api-linux-x64-musl" : " workspace:* " ,
27+ "@hyperlight/js-host-api-win32-x64-msvc" : " workspace:* "
2828 },
2929 "devDependencies" : {
3030 "@eslint/js" : " ^10.0.1" ,
You can’t perform that action at this time.
0 commit comments