Skip to content

Commit

Permalink
Merge pull request #76 from cybozu/use-buf-action
Browse files Browse the repository at this point in the history
Use the new Buf action
  • Loading branch information
ymmt2005 authored Aug 2, 2024
2 parents bb14d02 + 15330a4 commit 7265c0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 23 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,13 @@ jobs:
with:
go-version-file: go.mod
cache: true
- uses: actions/setup-node@v4
with:
node-version-file: ./es/package.json
cache: 'npm'
cache-dependency-path: './es/package-lock.json'
registry-url: 'https://registry.npmjs.org'
- uses: bufbuild/buf-setup-action@aceb106d2419c4cff48863df90161d92decb8591 # v1.35.1
- uses: bufbuild/buf-action@e08102e131956fce8553dcde03dc7b05c0c88c46 # v1.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: bufbuild/buf-push-action@a654ff18effe4641ebea4a4ce242c49800728459 # v1.2.0
with:
buf_token: ${{ secrets.BSR_TOKEN }}
token: ${{ secrets.BSR_TOKEN }}
format: false
lint: false
breaking: false
- name: GoReleaser
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
Expand All @@ -42,15 +37,3 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up git user
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
- name: Build ES packages
run: make es
- name: Publish to npm
run: ./scripts/release.sh
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ github.token }}
working-directory: ./es
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Makefile for compiling protobuf files

# Tool versions
BUF_VERSION = 1.32.0
BUF_VERSION = 1.35.1
GO_VERSION := $(shell awk '/^go / {print $$2}' go.mod)
PROTOC_GEN_GO_VERSION := $(shell awk '/google.golang.org\/protobuf/ {print substr($$NF, 2)}' go.mod)

Expand Down

0 comments on commit 7265c0b

Please sign in to comment.