mirror of https://gitlab.com/curben/blog
chore(dev-deps): move snyk and renovate to ci scripts
This commit is contained in:
parent
bbb688aa23
commit
955b1d6517
|
@ -10,6 +10,7 @@ before_script:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script:
|
script:
|
||||||
|
- npm install snyk
|
||||||
- npm run snyk # Refer to "scripts" in package.json
|
- npm run snyk # Refer to "scripts" in package.json
|
||||||
- npm run hexo
|
- npm run hexo
|
||||||
|
|
||||||
|
@ -23,6 +24,7 @@ test:
|
||||||
|
|
||||||
renovate: # Check dependency update
|
renovate: # Check dependency update
|
||||||
script:
|
script:
|
||||||
|
- npm install renovate
|
||||||
- npm run renovate
|
- npm run renovate
|
||||||
|
|
||||||
only:
|
only:
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
[context.production]
|
[context.production]
|
||||||
publish = "public"
|
publish = "public"
|
||||||
command = "npm run snyk && npm run hexo"
|
command = "npm install snyk && npm run snyk && npm run hexo"
|
||||||
|
|
|
@ -19,9 +19,5 @@
|
||||||
"hexo-renderer-marked": "hexojs/hexo-renderer-marked",
|
"hexo-renderer-marked": "hexojs/hexo-renderer-marked",
|
||||||
"hexo-server": "hexojs/hexo-server",
|
"hexo-server": "hexojs/hexo-server",
|
||||||
"hexo-yam": "curbengh/hexo-yam"
|
"hexo-yam": "curbengh/hexo-yam"
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"renovate": "^19.0.0",
|
|
||||||
"snyk": "^1.136.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue