Skip to content

Commit

Permalink
feat!: migrate to protobuf/connect v2
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Nov 21, 2024
1 parent 8129708 commit afe36f8
Show file tree
Hide file tree
Showing 6 changed files with 230 additions and 166 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ jobs:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v16
- uses: DeterminateSystems/magic-nix-cache-action@v8
- run: nix profile install .#releaseEnv
- run: nix profile install .#release-env
- run: npm ci --include=dev
- uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
with:
semantic_version: ^23
semantic_version: ^24
extra_plugins: |
@semantic-release/git@^10
@semantic-release/changelog@^6
@semantic-release/exec@^6
conventional-changelog-conventionalcommits@^7
conventional-changelog-conventionalcommits@^8
16 changes: 10 additions & 6 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
version: v1
version: v2
managed:
enabled: true
clean: true
inputs:
- module: buf.build/recap/arg-services:v1.5.1
plugins:
- plugin: buf.build/bufbuild/es:v1.8.0
- local: ./node_modules/.bin/protoc-gen-es
out: gen
opt: target=js+dts
- plugin: buf.build/connectrpc/es:v1.4.0
out: gen
opt: target=js+dts
include_imports: true
opt:
- target=js+dts
- import_extension=js
- json_types=true
4 changes: 0 additions & 4 deletions buf.yaml

This file was deleted.

22 changes: 10 additions & 12 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,30 @@
};
outputs =
inputs@{
nixpkgs,
flake-parts,
systems,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = import systems;
perSystem =
{ pkgs, lib, ... }:
{ pkgs, ... }:
{
packages = {
releaseEnv = pkgs.buildEnv {
release-env = pkgs.buildEnv {
name = "release-env";
paths = with pkgs; [ nodejs ];
};
bufGenerate = pkgs.writeShellApplication {
name = "buf-generate";
text = ''
${lib.getExe pkgs.buf} mod update
${lib.getExe pkgs.buf} generate --include-imports buf.build/recap/arg-services
'';
paths = with pkgs; [
nodejs
buf
];
};
};
devShells.default = pkgs.mkShell {
shellHook = "npm install";
packages = with pkgs; [ nodejs ];
packages = with pkgs; [
nodejs
buf
];
};
};
};
Expand Down
Loading

0 comments on commit afe36f8

Please sign in to comment.