Skip to content

Merge pull request #74 from cybozu/render-distinct-error-values #22

Merge pull request #74 from cybozu/render-distinct-error-values

Merge pull request #74 from cybozu/render-distinct-error-values #22

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
pull-requests: write
jobs:
release:
name: Release on GitHub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- run: git fetch --force --tags
- uses: actions/setup-go@v5
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@35c243d7f2a909b1d4e40399b348a7fdab27d78d # v1.34.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: bufbuild/buf-push-action@a654ff18effe4641ebea4a4ce242c49800728459 # v1.2.0
with:
buf_token: ${{ secrets.BSR_TOKEN }}
- name: GoReleaser
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
distribution: goreleaser
version: "~> v2"
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