MAINT use npm ci to make sure the consistent dependencies installed (#1999)

This commit is contained in:
Grimmer Kang 2021-11-28 03:43:31 +08:00 committed by GitHub
parent a255d54f3f
commit da49fe57de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -227,14 +227,14 @@ jobs:
command: |
cd src/js
npx tsd
npm install
npm ci
npm test
- run:
name: check if webpack cli works well with load-pyodide.js
command: |
git clone https://github.com/pyodide/pyodide-webpack-example.git
cd pyodide-webpack-example
npm install
npm ci
cp ../src/js/load-pyodide.js node_modules/pyodide/load-pyodide.js
head -20 node_modules/pyodide/load-pyodide.js
npx webpack

View File

@ -67,8 +67,8 @@ env:
env
node_modules/.installed : src/js/package.json
cd src/js && npm install --save-dev
node_modules/.installed : src/js/package.json src/js/package-lock.json
cd src/js && npm ci
ln -sfn src/js/node_modules/ node_modules
touch node_modules/.installed