From 3dbb05a8a5c21c6dc6762e5ac1b900e02208bcb8 Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Thu, 28 Sep 2023 01:14:00 +0900 Subject: [PATCH 1/2] Refer internal package --- es/packages/protoc-gen-es-cybozu-validate/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es/packages/protoc-gen-es-cybozu-validate/package.json b/es/packages/protoc-gen-es-cybozu-validate/package.json index ac80958..7b9d488 100644 --- a/es/packages/protoc-gen-es-cybozu-validate/package.json +++ b/es/packages/protoc-gen-es-cybozu-validate/package.json @@ -10,7 +10,7 @@ "dependencies": { "@bufbuild/protobuf": "1.2.0", "@bufbuild/protoplugin": "1.2.0", - "@cybozu/protobuf": "1.0.0" + "@cybozu/protobuf": "file:../protobuf" }, "devDependencies": { "typescript": "5.0.4" From 5b8b9116cbf9c730b95116772cce620e70f21f22 Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Thu, 28 Sep 2023 01:31:26 +0900 Subject: [PATCH 2/2] Commit and push after `npm version` --- .github/workflows/release.yaml | 4 ++++ es/scripts/release.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5fb0b34..86b3fe3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -39,6 +39,10 @@ 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 "actions@github.com" - name: Publish to npm run: ./scripts/release.sh env: diff --git a/es/scripts/release.sh b/es/scripts/release.sh index 4b776db..bccb7af 100755 --- a/es/scripts/release.sh +++ b/es/scripts/release.sh @@ -10,3 +10,7 @@ VERSION=${TAG#v} npm version $VERSION --no-git-tag-version --workspaces npm publish --workspaces + +git add . +git commit -m "Release $VERSION" +git push origin main