We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ac996e commit 29d2ebbCopy full SHA for 29d2ebb
.github/workflows/release.yml
@@ -40,4 +40,6 @@ jobs:
40
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41
run: |
42
npm install
43
- npx semantic-release
+ npx semantic-release
44
+ npm run sync-version
45
+ npm publish --access=public
package.json
@@ -9,6 +9,7 @@
9
},
10
"homepage": "https://github.com/nkmr-jp/api-to-go#readme",
11
"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)\"",
13
"fetch": "cd vendor && curl -OL https://raw.githubusercontent.com/mholt/json-to-go/master/json-to-go.js",
14
"setup": "yarn install && yarn fetch && npm -f link && exec $SHELL -l"
15
0 commit comments