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:
7
7
if [ -z " $( VERSION) " ]; then echo " VERSION is not set. Usage: make release VERSION=x.y.z" ; exit 1; fi
8
8
# Fetch the latest changes from the origin
9
9
git fetch origin
10
+ get rebase origin/main
10
11
# 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
12
13
# Clean untracked files and directories
13
14
git clean -dxf
14
15
# Tag the current commit
15
16
git tag -a " $( VERSION) " -m " Release $( VERSION) "
16
17
# Push the tag to remote repository
17
18
git push origin " $( VERSION) "
18
19
# Publish to npm
19
- npm build && npm publish --access public
20
+ npm run build && npm publish --access public
20
21
21
22
.PHONY : release
You can’t perform that action at this time.
0 commit comments