Skip to content

Commit fbdbea5

Browse files
committed
insert stash before creating a tag
1 parent 39ce6d0 commit fbdbea5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,47 @@ audit_fix:
1212

1313
.PHONY: release_prepatch
1414
release_prepatch:
15+
git stash
1516
$(eval NEW_TAG := $(shell npm version prepatch))
1617
git tag -d $(TAG)
1718
cd katex && npm version prepatch
1819
git reset HEAD^ && git add . && git commit -m $(NEW_TAG) && git tag $(NEW_TAG)
1920

2021
.PHONY: release_preminor
2122
release_preminor:
23+
git stash
2224
$(eval NEW_TAG := $(shell npm version preminor))
2325
git tag -d $(TAG)
2426
cd katex && npm version preminor
2527
git reset HEAD^ && git add . && git commit -m $(NEW_TAG) && git tag $(NEW_TAG)
2628

2729
.PHONY: release_prerelease
2830
release_prerelease:
31+
git stash
2932
$(eval NEW_TAG := $(shell npm version prerelease))
3033
git tag -d $(TAG)
3134
cd katex && npm version prerelease
3235
git reset HEAD^ && git add . && git commit -m $(NEW_TAG) && git tag $(NEW_TAG)
3336

3437
.PHONY: release_patch
3538
release_patch:
39+
git stash
3640
$(eval NEW_TAG := $(shell npm version patch))
3741
git tag -d $(TAG)
3842
cd katex && npm version patch
3943
git reset HEAD^ && git add . && git commit -m $(NEW_TAG) && git tag $(NEW_TAG)
4044

4145
.PHONY: release_minor
4246
release_minor:
47+
git stash
4348
$(eval NEW_TAG := $(shell npm version minor))
4449
git tag -d $(TAG)
4550
cd katex && npm version minor
4651
git reset HEAD^ && git add . && git commit -m $(NEW_TAG) && git tag $(NEW_TAG)
4752

4853
.PHONY: release_major
4954
release_major:
55+
git stash
5056
$(eval NEW_TAG := $(shell npm version major))
5157
git tag -d $(TAG)
5258
cd katex && npm version major

0 commit comments

Comments
 (0)