File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,16 @@ release:
77 if [ -z " $( VERSION) " ]; then echo " VERSION is not set. Usage: make release VERSION=x.y.z" ; exit 1; fi
88 # Fetch the latest changes from the origin
99 git fetch origin
10+ get rebase origin/main
1011 # Reset the current branch to match the origin branch
11- git reset --hard origin/ $( shell git rev-parse --abbrev-ref HEAD)
12+ git reset --hard
1213 # Clean untracked files and directories
1314 git clean -dxf
1415 # Tag the current commit
1516 git tag -a " $( VERSION) " -m " Release $( VERSION) "
1617 # Push the tag to remote repository
1718 git push origin " $( VERSION) "
1819 # Publish to npm
19- npm build && npm publish --access public
20+ npm run build && npm publish --access public
2021
2122.PHONY : release
You can’t perform that action at this time.
0 commit comments