Skip to content

Commit

Permalink
maint(Bundle): Also upload a compiled bundle release for GitHub.
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed May 17, 2022
1 parent c268d84 commit 2604397
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,36 +46,47 @@ bundle: stamp-yarn
# https://github.com/settings/tokens
# and https://github.com/release-it/release-it/blob/master/docs/github-releases.md#automated

release-zip: clean-dist bundle
$(eval PACKAGE_VERSION := $(shell node -p "require('./package.json').version"))
@echo name is $(PACKAGE_NAME)
@echo version is $(PACKAGE_VERSION)
mkdir -p dist/$(PACKAGE_NAME)-bundle-$(PACKAGE_VERSION)
-mv dist/* dist/$(PACKAGE_NAME)-bundle-$(PACKAGE_VERSION)
cd dist/ && zip -r $(PACKAGE_NAME)-bundle-$(PACKAGE_VERSION).zip $(PACKAGE_NAME)-bundle-$(PACKAGE_VERSION)/

.PHONY: release-major
release-major: check
npx release-it major --dry-run --ci && \
npx release-it major --ci && \
npx release-it --github.release --github.update --no-github.draft --no-increment --no-git --no-npm --ci && \
make release-zip && \
npx release-it --github.release --github.update --github.assets=dist/*.zip --no-github.draft --no-increment --no-git --no-npm --ci && \
git checkout CHANGES.md


.PHONY: release-minor
release-minor: check
npx release-it minor --dry-run --ci && \
npx release-it minor --ci && \
npx release-it --github.release --github.update --no-github.draft --no-increment --no-git --no-npm --ci && \
make release-zip && \
npx release-it --github.release --github.update --github.assets=dist/*.zip --no-github.draft --no-increment --no-git --no-npm --ci && \
git checkout CHANGES.md


.PHONY: release-patch
release-patch: check
npx release-it patch --dry-run --ci && \
npx release-it patch --ci && \
npx release-it --github.release --github.update --no-github.draft --no-increment --no-git --no-npm --ci && \
make release-zip && \
npx release-it --github.release --github.update --github.assets=dist/*.zip --no-github.draft --no-increment --no-git --no-npm --ci && \
git checkout CHANGES.md


.PHONY: prerelease
prerelease:
npx release-it patch --dry-run --ci --preRelease=alpha && \
npx release-it patch --ci --preRelease=alpha && \
npx release-it --github.preRelease --github.update --no-github.draft --no-increment --no-git --no-npm --ci && \
make release-zip && \
npx release-it --github.release --github.update --github.assets=dist/*.zip --no-github.draft --no-increment --no-git --no-npm --ci && \
git checkout CHANGES.md


Expand Down

0 comments on commit 2604397

Please sign in to comment.