appveyor.yml
version: 1.47.0.{build}
branches:
only:
- master
image: Visual Studio 2019
platform: x64
environment:
matrix:
- nodejs_version: "LTS"
custom_appveyor: yes
build:
verbosity: detailed
matrix:
fast_finish: true
before_build:
- ps: $env:package_node_version = Get-Content package.json | ConvertFrom-Json | Select -ExpandProperty engines | Select -ExpandProperty node
- ps: $env:package_node_version
- ps: $env:package_npm_version = Get-Content package.json | ConvertFrom-Json | Select -ExpandProperty engines | Select -ExpandProperty npm
- ps: $env:package_npm_version
- ps: $env:package_version = Get-Content package.json | ConvertFrom-Json | Select -ExpandProperty version
- ps: Update-AppveyorBuild -Version "$env:package_version.$env:APPVEYOR_BUILD_NUMBER"
- ps: Install-Product node $env:nodejs_version $env:platform
- node --version
- npm --version
- npm ci --force
build_script:
- npm run build