This repository has been archived by the owner on Oct 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,8 @@ clone_depth: 5 | |
|
||
# environment variables | ||
environment: | ||
nodejs_version: "12" | ||
platform: "x86" | ||
GIT_USER_EMAIL: [email protected] | ||
GIT_USER_NAME: PresentKim | ||
GIT_USER_TOKEN: | ||
|
@@ -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 | ||
|