fix: run yarn locally
This commit is contained in:
parent
78c875503c
commit
9848f600e9
@ -20,12 +20,15 @@ before_script:
|
|||||||
- yarn run build
|
- yarn run build
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- tar -czf wiki-js.tar.gz * -X .build/.deployexclude
|
- tar -czf wiki-js.tar.gz * -X .build/.deployexclude
|
||||||
|
- yarn install --production --ignore-scripts --prefer-offline
|
||||||
|
- tar -czf node_modules.tar.gz node_modules
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key:
|
api_key:
|
||||||
secure: TyasQ2QnWQoBhsiwm88oHoeJ+PWBZnbWEJwu6JdN5HA9cXqIdHqd1msCh84gGtKRfL2EObw4AvDwLSEd5mIM0cmQfTiokYbmb7OSjOq880rbZwtXt9t9KkC5b+TIxkhJzkzi7vIpssTeNkVJBbo/R3m0suaCRqzypkW5mhVcsFhhZ8oVCZnI1uZAXCwFNMcFFUAHxWYE98tW5bfxknRU1NJFcXysN8VXskIZ82wQQBAzZ1aQgVyMl6Uw2hns399hxCx8gVKWOIdbpO1bliHBMdm5z+lR5i723IQnHpYJf4gWvPf3oHnSS1ocrJeWVoBqanC5Iu3QhwOvPLPw/AUcJOqhvS/QiGZ2AuA9GwtBpYNVYYGD9RqcODBKZy0fWluwCuVNNoQHmwMWVP7lRnwP+SNtLzzV5ZC8mrjb4B9KGoBUR8Q7lz8cMtLoPOixk1WdWOpIFzKcw/fy8Ze6cnnFKrzsPVUZy3E3SKit3GuP6Nd7ghO0Kxp4x0eAlqFDYRZ9nG55ctd0i2b5u1r+VArt21dk2aMFxL6i67funIraEndLQFHhRgPVmjemJBRXf8j8OYrGStTsm0S26IXo3iVh/NJakIg6mEFJ3j4BXPEjCUmIW0iD6sKGTeNH6jaON+DV4T+ErGnYzgwO5KIfo9cI00DqjG0tjBQ45lWaLGy6PEo=
|
secure: TyasQ2QnWQoBhsiwm88oHoeJ+PWBZnbWEJwu6JdN5HA9cXqIdHqd1msCh84gGtKRfL2EObw4AvDwLSEd5mIM0cmQfTiokYbmb7OSjOq880rbZwtXt9t9KkC5b+TIxkhJzkzi7vIpssTeNkVJBbo/R3m0suaCRqzypkW5mhVcsFhhZ8oVCZnI1uZAXCwFNMcFFUAHxWYE98tW5bfxknRU1NJFcXysN8VXskIZ82wQQBAzZ1aQgVyMl6Uw2hns399hxCx8gVKWOIdbpO1bliHBMdm5z+lR5i723IQnHpYJf4gWvPf3oHnSS1ocrJeWVoBqanC5Iu3QhwOvPLPw/AUcJOqhvS/QiGZ2AuA9GwtBpYNVYYGD9RqcODBKZy0fWluwCuVNNoQHmwMWVP7lRnwP+SNtLzzV5ZC8mrjb4B9KGoBUR8Q7lz8cMtLoPOixk1WdWOpIFzKcw/fy8Ze6cnnFKrzsPVUZy3E3SKit3GuP6Nd7ghO0Kxp4x0eAlqFDYRZ9nG55ctd0i2b5u1r+VArt21dk2aMFxL6i67funIraEndLQFHhRgPVmjemJBRXf8j8OYrGStTsm0S26IXo3iVh/NJakIg6mEFJ3j4BXPEjCUmIW0iD6sKGTeNH6jaON+DV4T+ErGnYzgwO5KIfo9cI00DqjG0tjBQ45lWaLGy6PEo=
|
||||||
file:
|
file:
|
||||||
- wiki-js.tar.gz
|
- wiki-js.tar.gz
|
||||||
|
- node_modules.tar.gz
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
overwrite: true
|
overwrite: true
|
||||||
on:
|
on:
|
||||||
|
@ -143,7 +143,7 @@ const tasks = {
|
|||||||
*/
|
*/
|
||||||
installYarn() {
|
installYarn() {
|
||||||
ora.text = 'Installing Yarn...'
|
ora.text = 'Installing Yarn...'
|
||||||
return exec.stdout('npm', ['install', '-g', 'yarn'], {
|
return exec.stdout('npm', ['install', 'yarn'], {
|
||||||
cwd: installDir
|
cwd: installDir
|
||||||
}).then(results => {
|
}).then(results => {
|
||||||
ora.text = 'Yarn installed successfully.'
|
ora.text = 'Yarn installed successfully.'
|
||||||
@ -155,7 +155,7 @@ const tasks = {
|
|||||||
*/
|
*/
|
||||||
installDependencies() {
|
installDependencies() {
|
||||||
ora.text = 'Installing Wiki.js npm dependencies...'
|
ora.text = 'Installing Wiki.js npm dependencies...'
|
||||||
return exec.stdout('yarn', ['install', '--production', '--ignore-optional'], {
|
return exec.stdout('./node_modules/.bin/yarn', ['install', '--production', '--ignore-optional'], {
|
||||||
cwd: installDir
|
cwd: installDir
|
||||||
}).then(results => {
|
}).then(results => {
|
||||||
ora.text = 'Wiki.js npm dependencies installed successfully.'
|
ora.text = 'Wiki.js npm dependencies installed successfully.'
|
||||||
|
2
npm/package-lock.json
generated
2
npm/package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "wiki.js",
|
"name": "wiki.js",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"amp": {
|
"amp": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "wiki.js",
|
"name": "wiki.js",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "A modern, lightweight and powerful wiki app built on NodeJS, Git and Markdown",
|
"description": "A modern, lightweight and powerful wiki app built on NodeJS, Git and Markdown",
|
||||||
"main": "install.js",
|
"main": "install.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "wiki",
|
"name": "wiki",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "A modern, lightweight and powerful wiki app built on NodeJS, Git and Markdown",
|
"description": "A modern, lightweight and powerful wiki app built on NodeJS, Git and Markdown",
|
||||||
"main": "wiki.js",
|
"main": "wiki.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
Reference in New Issue
Block a user