Skip to content

Commit 9cbf3e9

Browse files
committed
chore: releases
1 parent c155f67 commit 9cbf3e9

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

.github/workflows/lib.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Publish library
22

33
on:
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 }}

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

Makefile.toml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,9 @@ args = ["i"]
1212

1313
[tasks.core_generate]
1414
dependencies = ["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]
2920
dependencies = ["core_generate"]

charts/feedback-fusion/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: 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
#

lib/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
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",

0 commit comments

Comments
 (0)