Skip to content

Commit 4408432

Browse files
committed
Update postpublish script
1 parent d0e556e commit 4408432

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"build:postcss": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format postcss",
2020
"build:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife",
2121
"release:patch": "npm version patch -m 'Release %s' && npm publish",
22-
"postpublish": "cd example && npm install -f vue-notion@latest && git add --all && git commit -m 'Update example' && git push --tags",
22+
"postpublish": "./scripts/postpublish.sh",
2323
"prepare": "rm -rf dist && npm run build"
2424
},
2525
"dependencies": {

scripts/postpublish.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
GIT_TAG=$(git describe --abbrev=0 --tags)
4+
5+
$(cd example && npm install -f vue-notion@latest)
6+
7+
git add --all
8+
git commit -m 'Update example'
9+
git push --tags
10+
11+
gh release create $GIT_TAG -t "$GIT_TAG"

0 commit comments

Comments
 (0)