Skip to content

Commit

Permalink
Prepare for v0.1.4 (#36)
Browse files Browse the repository at this point in the history
Update version in preparation for release.
  • Loading branch information
emcfarlane authored Jun 18, 2024
1 parent 4ebb0cf commit e4ccf70
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SHELL := bash
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
MAKEFLAGS += --no-print-directory
BUF_VERSION ?= 1.32.2
BUF_VERSION ?= 1.33.0

UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
Expand Down Expand Up @@ -39,10 +39,14 @@ build: node_modules format lint
updateversion:
ifndef VERSION
$(error "VERSION must be set")
endif
ifndef VERSION_SHORT
$(error "VERSION_SHORT must be set")
endif
$(SED_I) "s/version: [0-9]+\.[0-9]+\.[0-9]+/version: $(BUF_VERSION)/g" action.yml README.md examples/*.yaml examples/*/*.yaml
$(SED_I) "s/buf-action@v[0-9]+\.[0-9]+\.[0-9]+/buf-action@v$(VERSION)/g" README.md examples/*.yaml examples/*/*.yaml
$(SED_I) "s/buf-action@v[0-9]+\.[0-9]+[\.[0-9]+]?/buf-action@v$(VERSION_SHORT)/g" README.md examples/*.yaml examples/*/*.yaml
$(SED_I) "s/\"version\": \"[0-9]+\.[0-9]+\.[0-9]+\"/\"version\": \"$(VERSION)\"/g" package.json
$(SED_I) "s/^ BUF_VERSION: \"[0-9]+\.[0-9]+\.[0-9]+\"/ BUF_VERSION: \"$(BUF_VERSION)\"/g" .github/workflows/ci.yaml

.PHONY: generate
generate: node_modules ## Regenerate licenses
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ For reproducible builds, you can pin to an explicit version of `buf` by setting
```yaml
- uses: bufbuild/[email protected]
with:
version: 1.32.2
version: 1.33.0
```

If no version is specified in the workflow config, the action will resolve the version in order of precendence:
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ inputs:
Version of the Buf CLI to use.
Example:
with:
version: 1.32.2
version: 1.33.0
required: false
username:
description: |-
Expand Down
2 changes: 1 addition & 1 deletion examples/disable-skip/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/[email protected].3
- uses: bufbuild/[email protected]
with:
username: ${{ secrets.BUF_USERNAME }}
token: ${{ secrets.BUF_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion examples/version-input/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
- uses: bufbuild/[email protected]
with:
setup_only: true
version: 1.32.2
version: 1.33.0
- run: buf version
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "buf-action",
"version": "0.1.3",
"version": "0.1.4",
"description": "GitHub Action for buf",
"main": "src/main.ts",
"scripts": {
Expand Down

0 comments on commit e4ccf70

Please sign in to comment.