web: Version seal needs to run inside `npm` in order to get a version number

This commit is contained in:
David Wendt 2023-01-31 07:57:14 -05:00 committed by Nathan Adams
parent d629459a29
commit 4c8b225ddd
2 changed files with 3 additions and 2 deletions

View File

@ -320,7 +320,7 @@ jobs:
env:
BUILD_ID: ${{ github.run_number }}
ENABLE_VERSION_SEAL: "true"
run: node packages/core/tools/set_version.js
run: npm run version-seal
- name: Produce reproducible source archive
if: ${{ !matrix.demo }}

View File

@ -49,6 +49,7 @@
"test": "npm test --workspaces --if-present",
"docs": "npm run docs --workspaces --if-present",
"lint": "eslint . && stylelint **.css",
"format": "eslint . --fix && stylelint --fix **.css"
"format": "eslint . --fix && stylelint --fix **.css",
"version-seal": "cross-env ENABLE_VERSION_SEAL=true node packages/core/tools/set_version.js"
}
}