Skip to content

Commit

Permalink
chore(release): improved process of releasing binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
ADRFranklin committed Mar 30, 2024
1 parent 99e5ea5 commit f049db4
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ build/
data/
db/
logs/
dist/
.eslintcache
*.log
.DS_Store
Expand Down
7 changes: 5 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,12 @@ tasks:
# Package
# -
pkg:
dir: pkg/api
deps:
- 'build:pre'
- 'build:fe'
- 'build:api:prod'
cmds:
- pkg . --no-bytecode --public-packages "*"
- yarn run release

pkg:docker:
dir: pkg/api
Expand Down
25 changes: 23 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
"private": true,
"author": "Petio Team",
"license": "MIT",
"bin": "./pkg/api/dist/index.js",
"workspaces": [
"pkg/api",
"pkg/frontend",
"pkg/admin"
],
"scripts": {
"prepare": "is-ci || husky install",
"release": "pkg . --no-bytecode --public-packages \"*\" --public"
},
"devDependencies": {
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
Expand All @@ -16,8 +21,24 @@
"husky": "^8.0.1",
"prettier": "^2.6.2"
},
"scripts": {
"prepare": "is-ci || husky install"
"pkg": {
"scripts": [],
"assets": [
"./frontend/build/**/*"
],
"targets": [
"node16-alpine-arm64",
"node16-alpine-x64",
"node16-linux-arm64",
"node16-linux-x64",
"node16-linuxstatic-arm64",
"node16-linuxstatic-x64",
"node16-macos-x64",
"node16-macos-arm64",
"node16-windows-x64",
"node16-windows-arm64"
],
"outputPath": "dist"
},
"packageManager": "yarn@3.2.1"
}
17 changes: 0 additions & 17 deletions pkg/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,23 +114,6 @@
"tsconfig-paths": "^4.1.0",
"typescript": "^4.8.3"
},
"bin": "./dist/main.js",
"pkg": {
"assets": [
"../frontend/build/**/*"
],
"targets": [
"node16-alpine-arm64",
"node16-alpine-x64",
"node16-linux-arm64",
"node16-linux-x64",
"node16-linuxstatic-arm64",
"node16-linuxstatic-x64",
"node16-win-x64",
"node16-win-arm64"
],
"outputPath": "../../releases"
},
"_moduleAliases": {
"@": "src"
}
Expand Down

0 comments on commit f049db4

Please sign in to comment.