Skip to content

Commit

Permalink
fix: No files generated by Buf.build inside NPM package [DEV-3499]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdotb committed Jan 5, 2024
1 parent a75fbe8 commit bc58d30
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jobs:
with:
node-version: 18
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: "Install buf CLI"
uses: bufbuild/buf-setup-action@v1.28.1
with:
buf_user: ${{ secrets.BUF_USER }}
buf_api_token: ${{ secrets.BUF_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: "Clean install dependencies"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
- name: "Install buf CLI"
uses: bufbuild/buf-setup-action@v1.28.1
with:
buf_user: ${{ secrets.BUF_USER }}
buf_api_token: ${{ secrets.BUF_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
- name: "Install buf CLI"
uses: bufbuild/buf-setup-action@v1.28.1
with:
buf_user: ${{ secrets.BUF_USER }}
buf_api_token: ${{ secrets.BUF_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Generate TypeScript code for Protobufs
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
with:
node-version: 18
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: "Obtain Github App token"
id: app-token
Expand All @@ -32,6 +31,8 @@ jobs:
- name: "Install buf CLI"
uses: bufbuild/buf-setup-action@v1.28.1
with:
buf_user: ${{ secrets.BUF_USER }}
buf_api_token: ${{ secrets.BUF_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: "Clean install dependencies"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "index.js",
"type": "module",
"files": [
"amino/**/*",
"cheqd/**/*",
"cosmos/**/*",
"cosmos_proto/**/*",
Expand Down

0 comments on commit bc58d30

Please sign in to comment.