Skip to content

Commit 2613ae1

Browse files
Merge pull request #15 from cloudnautique/main
chore: fix makefile to match actual steps.
2 parents 5898fa1 + c1ff034 commit 2613ae1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)