Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Commit

Permalink
AppVeyor : Set nodejs version to 12
Browse files Browse the repository at this point in the history
  • Loading branch information
PresentKim committed Sep 20, 2019
1 parent 49c87b3 commit aee4379
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ clone_depth: 5

# environment variables
environment:
nodejs_version: "12"
platform: "x86"
GIT_USER_EMAIL: debe3721@gmail.com
GIT_USER_NAME: PresentKim
GIT_USER_TOKEN:
Expand All @@ -50,9 +52,14 @@ init:

# scripts that run after cloning repository
install:
# install nodejs > v12
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
- sudo apt-get install -y nodejs
# install nodejs version 12.x
- ps: |
try {
Install-Product node $env:nodejs_version $env:platform
} catch {
echo "Unable to install node $env:nodejs_version, trying update..."
Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
}
# install npm
- npm install --global npm@latest
# install hexo-cli to global
Expand Down

0 comments on commit aee4379

Please sign in to comment.