os: unstable
cache:
  - node_modules
environment:
  matrix:
    - nodejs_version: 14
install:
  - ps: Install-Product node $env:nodejs_version
  - set CI=true
  - npm install -g npm@latest
  - set PATH=%APPDATA%\npm;%PATH%
  - npm install -g yarn@latest
  - yarn install
  - if not exist "node_modules\iohook\builds\electron-v80-win32-x64\build\Release\" mkdir -p node_modules\iohook\builds\electron-v80-win32-x64\build\Release\
  - cp iohook\iohook.node node_modules\iohook\builds\electron-v80-win32-x64\build\Release\
  - cp iohook\uiohook.dll node_modules\iohook\builds\electron-v80-win32-x64\build\Release\
matrix:
  fast_finish: true
test: off
version: '{build}'
shallow_clone: true
clone_depth: 1
build_script:
  - yarn run publish
artifacts:
  - path: dist/win-unpacked
    name: unpacked
    type: zip