build: add a step before releasing

This commit is contained in:
Miodec 2023-11-17 15:57:08 +00:00
parent eac100dee0
commit 2cb338d2cc
2 changed files with 6 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"hooks": {
"before:init": ["npm run lint"],
"before:init": ["npm run lint", "cd frontend && npx gulp build-production"],
"before:release": [
"cd frontend && npm run deploy-live",
"sh ./bin/purgeCfCache.sh"

View file

@ -1,6 +1,10 @@
{
"hooks": {
"before:init": ["npm run lint", "npm run test-be"],
"before:init": [
"npm run lint",
"npm run test-be",
"cd frontend && npx gulp build-production"
],
"before:release": [
"sh ./bin/deployBackend.sh",
"cd frontend && npm run deploy-live",