Skip to content

Commit 2672752

Browse files
committed
ci: setup buf
1 parent 1c17d80 commit 2672752

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,27 @@ on:
77
- feat_release_connect-js-package
88

99
jobs:
10+
validate:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: bufbuild/buf-setup-action@v1.5.0
15+
with:
16+
github_token: ${{ secrets.GITHUB_TOKEN }}
17+
- name: Lint protobuf files
18+
run: buf lint
19+
- name: Check breaking changes
20+
run: buf breaking --against 'https://github.com/raystack/proton.git#branch=main'
21+
if: github.ref != 'refs/heads/main'
22+
1023
publish:
1124
runs-on: ubuntu-latest
25+
needs: validate
1226
steps:
1327
- uses: actions/checkout@v3
28+
- uses: bufbuild/buf-setup-action@v1.5.0
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
1431
- uses: actions/setup-node@v3
1532
with:
1633
node-version: 22

0 commit comments

Comments
 (0)