mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-27 10:31:22 +08:00
build: add release frontend script in case backend got recently deployed
This commit is contained in:
parent
e61733c66a
commit
56d46fb363
2 changed files with 23 additions and 1 deletions
21
.release-it-fe.json
Normal file
21
.release-it-fe.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"hooks": {
|
||||
"before:init": ["npm run lint"],
|
||||
"before:release": [
|
||||
"cd frontend && npm run deploy-live",
|
||||
"sh ./bin/purgeCfCache.sh"
|
||||
]
|
||||
},
|
||||
"git": {
|
||||
"commitMessage": "chore: release v${version}",
|
||||
"requireCleanWorkingDir": true,
|
||||
"changelog": "node bin/buildChangelog.mjs"
|
||||
},
|
||||
"github": {
|
||||
"release": true
|
||||
},
|
||||
"npm": {
|
||||
"publish": false,
|
||||
"ignoreVersion": true
|
||||
}
|
||||
}
|
||||
|
|
@ -18,7 +18,8 @@
|
|||
"dev-fe": "cd frontend && npm run dev",
|
||||
"live": "concurrently --kill-others \"cd frontend && npm run live\" \"cd backend && npm run start\"",
|
||||
"audit-fe": "cd frontend && npm run audit",
|
||||
"release": "release-it",
|
||||
"release": "release-it -c .release-it.json",
|
||||
"release-fe": "release-it -c .release-it-fe.json",
|
||||
"hotfix": "cd frontend && npm run deploy-live && cd .. && sh ./bin/purgeCfCache.sh",
|
||||
"build-fe": "cd ./frontend && npm run build-live",
|
||||
"pretty": "prettier --check \"./backend/**/*.{ts,json,js,css,html}\" \"./frontend/**/*.{ts,js,scss}\" \"./frontend/static/**/*.{json,html,css}\"",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue