test multiple env builds

ok ok, restore dependencies install... 💩
This commit is contained in:
Pierric Cistac
2020-01-14 10:30:35 -05:00
parent d11c2dcb92
commit a0bc4c97ce
2 changed files with 8 additions and 8 deletions

View File

@ -16,8 +16,8 @@ jobs:
node_pre_gyp:
strategy:
matrix:
os: [windows-latest]
node-version: [12.x]
os: [windows-latest, macos-latest, ubuntu-latest]
node-version: [10.x, 12.x, 13.x]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
@ -36,9 +36,10 @@ jobs:
- name: Install dependencies
working-directory: ./bindings/node
run: npm ci
run: npm ci --ignore-scripts
- working-directory: ./bindings/node
- name: Run publish.js for build
working-directory: ./bindings/node
run: node publish.js
- name: Install Python
@ -47,7 +48,6 @@ jobs:
python-version: 3.x
- name: Upload tarball
# if: startsWith(matrix.os, 'windows')
working-directory: ./bindings/node
shell: bash
run: |

View File

@ -25,7 +25,7 @@ shell.set("-e");
const rootDirectory = path.dirname(process.argv[1]);
shell.cd(rootDirectory);
const shouldPublish = process.argv.slice(2).indexOf("--publish") !== -1;
const npmPublish = process.argv.slice(2).indexOf("--npm-publish") !== -1;
const distPath = "./dist";
// Cleanup the previous build, if it exists
@ -34,7 +34,7 @@ shell.rm("-rf", "./bin-package");
shell.rm("-rf", "./build");
// Cleanup any previous Rust builds, update deps, and compile
shell.exec("npm install --ignore-scripts");
shell.exec("npm ci --ignore-scripts");
shell.exec("npm run clean");
shell.pushd("./native");
shell.exec("cargo update");
@ -59,7 +59,7 @@ var tgz = shell.exec("find ./build -name *.tar.gz");
shell.cp(tgz, "./bin-package/");
shell.pushd(distPath);
shell.exec(shouldPublish ? "npm publish --access public" : "echo 'Skipping publishing to npm...'");
shell.exec(npmPublish ? "npm publish --access public" : "echo 'Skipping publishing to npm...'");
shell.popd();
shell.echo("publish.js COMPLETE");