File tree Expand file tree Collapse file tree 5 files changed +15
-17
lines changed
Expand file tree Collapse file tree 5 files changed +15
-17
lines changed Original file line number Diff line number Diff line change 1- name : Release
1+ name : Publish library
22
33on :
44 push :
@@ -26,12 +26,16 @@ jobs:
2626 run : pnpm i
2727 working-directory : lib
2828
29+ - name : Build
30+ run : pnpm run protoc
31+ working-directory : lib
32+
2933 - name : Build
3034 run : pnpm run tsc
3135 working-directory : lib
3236
3337 - name : Publish
3438 uses : JS-DevTools/npm-publish@v3
35- working-directory : lib
3639 with :
40+ package : lib
3741 token : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -112,7 +112,9 @@ jobs:
112112 uses : actions/checkout@v4
113113
114114 - name : Extract version
115- run : echo "VERSION=${GITHUB_REF#refs/tags/server-}" >> $GITHUB_ENV
115+ run : |
116+ VERSION=$(grep '^version = ' Cargo.toml | sed -E 's/version = "(.*)"/\1/')
117+ echo "VERSION=$VERSION" >> $GITHUB_ENV
116118
117119 - name : Login into repository
118120 uses : docker/login-action@v3
@@ -126,4 +128,4 @@ jobs:
126128 with :
127129 context : .
128130 push : true
129- tags : ghcr.io/onelitefeathernet/feedback-fusion:${env.VERSION},ghcr.io/onelitefeathernet/feedback-fusion:latest
131+ tags : ghcr.io/onelitefeathernet/feedback-fusion:${{ env.VERSION} },ghcr.io/onelitefeathernet/feedback-fusion:latest
Original file line number Diff line number Diff line change @@ -12,18 +12,9 @@ args = ["i"]
1212
1313[tasks .core_generate ]
1414dependencies = [" pnpm" ]
15- cwd = " ./lib/src/"
16- command = " npx"
17- args = [
18- " protoc" ,
19- " --ts_out" ,
20- " ." ,
21- " --ts_opt" ,
22- " server_none" ,
23- " --proto_path" ,
24- " ../../proto" ,
25- " ../../proto/feedback-fusion-v1.proto" ,
26- ]
15+ cwd = " ./lib/"
16+ command = " pnpm"
17+ args = [" run" , " protoc" ]
2718
2819[tasks .docs ]
2920dependencies = [" core_generate" ]
Original file line number Diff line number Diff line change 11apiVersion : v2
22name : feedback-fusion
3- description : A Helm chart for Kubernetes
3+ description : Feedback-Fusion helm chart
44
55# A chart can be either an 'application' or a 'library' chart.
66#
Original file line number Diff line number Diff line change 1212 },
1313 "scripts" : {
1414 "analyze" : " cem analyze --litelement" ,
15+ "protoc" : " npx protoc --ts_out src --ts_opt server_none --proto_path ../proto ../proto/feedback-fusion-v1.proto" ,
1516 "build" : " tsc && npm run analyze -- --exclude dist" ,
1617 "prepublish" : " tsc && npm run analyze -- --exclude dist" ,
1718 "lint" : " eslint --ext .ts,.html . --ignore-path .gitignore && prettier \" **/*.ts\" --check --ignore-path .gitignore" ,
You can’t perform that action at this time.
0 commit comments