build: add --ignore-scripts to npm install commands (#4655)
This commit is contained in:
parent
f59e6aacc4
commit
b6757c5ed3
3 changed files with 4 additions and 5 deletions
2
.github/workflows/ci-bundle.yml
vendored
2
.github/workflows/ci-bundle.yml
vendored
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm install
|
run: npm install --ignore-scripts
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
2
.github/workflows/ci-flatpak.yml
vendored
2
.github/workflows/ci-flatpak.yml
vendored
|
|
@ -50,7 +50,7 @@ jobs:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm install --package-lock-only
|
run: npm install --ignore-scripts --package-lock-only
|
||||||
|
|
||||||
- name: Debug package-lock.json
|
- name: Debug package-lock.json
|
||||||
run: cat package-lock.json
|
run: cat package-lock.json
|
||||||
|
|
|
||||||
|
|
@ -54,10 +54,9 @@ endif()
|
||||||
#WebUI build
|
#WebUI build
|
||||||
find_program(NPM npm REQUIRED)
|
find_program(NPM npm REQUIRED)
|
||||||
|
|
||||||
|
set(NPM_INSTALL_FLAGS "--ignore-scripts")
|
||||||
if (NPM_OFFLINE)
|
if (NPM_OFFLINE)
|
||||||
set(NPM_INSTALL_FLAGS "--offline")
|
set(NPM_INSTALL_FLAGS "${NPM_INSTALL_FLAGS} --offline")
|
||||||
else()
|
|
||||||
set(NPM_INSTALL_FLAGS "")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_custom_target(web-ui ALL
|
add_custom_target(web-ui ALL
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue