Skip to content

Commit

Permalink
Merge pull request #32 from cybozu/fix-release-npm-package
Browse files Browse the repository at this point in the history
Fix release npm package job
  • Loading branch information
ymmt2005 authored Sep 28, 2023
2 parents 1a9cba4 + 5b8b911 commit cbf7e72
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
- name: Publish to npm
run: ./scripts/release.sh
env:
Expand Down
2 changes: 1 addition & 1 deletion es/packages/protoc-gen-es-cybozu-validate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions es/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cbf7e72

Please sign in to comment.