Skip to content

Commit

Permalink
chore: releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Randoooom committed Jul 6, 2024
1 parent c155f67 commit 9cbf3e9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/lib.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Publish library

on:
push:
Expand Down Expand Up @@ -26,12 +26,16 @@ jobs:
run: pnpm i
working-directory: lib

- name: Build
run: pnpm run protoc
working-directory: lib

- name: Build
run: pnpm run tsc
working-directory: lib

- name: Publish
uses: JS-DevTools/npm-publish@v3
working-directory: lib
with:
package: lib
token: ${{ secrets.NPM_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ jobs:
uses: actions/checkout@v4

- name: Extract version
run: echo "VERSION=${GITHUB_REF#refs/tags/server-}" >> $GITHUB_ENV
run: |
VERSION=$(grep '^version = ' Cargo.toml | sed -E 's/version = "(.*)"/\1/')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Login into repository
uses: docker/login-action@v3
Expand All @@ -126,4 +128,4 @@ jobs:
with:
context: .
push: true
tags: ghcr.io/onelitefeathernet/feedback-fusion:${env.VERSION},ghcr.io/onelitefeathernet/feedback-fusion:latest
tags: ghcr.io/onelitefeathernet/feedback-fusion:${{env.VERSION}},ghcr.io/onelitefeathernet/feedback-fusion:latest
15 changes: 3 additions & 12 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,9 @@ args = ["i"]

[tasks.core_generate]
dependencies = ["pnpm"]
cwd = "./lib/src/"
command = "npx"
args = [
"protoc",
"--ts_out",
".",
"--ts_opt",
"server_none",
"--proto_path",
"../../proto",
"../../proto/feedback-fusion-v1.proto",
]
cwd = "./lib/"
command = "pnpm"
args = ["run", "protoc"]

[tasks.docs]
dependencies = ["core_generate"]
Expand Down
2 changes: 1 addition & 1 deletion charts/feedback-fusion/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: feedback-fusion
description: A Helm chart for Kubernetes
description: Feedback-Fusion helm chart

# A chart can be either an 'application' or a 'library' chart.
#
Expand Down
1 change: 1 addition & 0 deletions lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"scripts": {
"analyze": "cem analyze --litelement",
"protoc": "npx protoc --ts_out src --ts_opt server_none --proto_path ../proto ../proto/feedback-fusion-v1.proto",
"build": "tsc && npm run analyze -- --exclude dist",
"prepublish": "tsc && npm run analyze -- --exclude dist",
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
Expand Down

0 comments on commit 9cbf3e9

Please sign in to comment.