Skip to content

Commit 29d2ebb

Browse files
committed
🔖 [skip ci] v1.0.0
1 parent 3ac996e commit 29d2ebb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ jobs:
4040
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4141
run: |
4242
npm install
43-
npx semantic-release
43+
npx semantic-release
44+
npm run sync-version
45+
npm publish --access=public

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
},
1010
"homepage": "https://github.com/nkmr-jp/api-to-go#readme",
1111
"scripts": {
12+
"sync-version": "npm version from-git --no-git-tag-version && git add package.json && git commit -m \":bookmark: [skip ci] v$(cat package.json | jq -r .version)\"",
1213
"fetch": "cd vendor && curl -OL https://raw.githubusercontent.com/mholt/json-to-go/master/json-to-go.js",
1314
"setup": "yarn install && yarn fetch && npm -f link && exec $SHELL -l"
1415
},

0 commit comments

Comments
 (0)