-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathMakefile
27 lines (20 loc) · 779 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Must have `sentry-cli` installed globally
# Following variable must be passed in
# SENTRY_AUTH_TOKEN
SENTRY_ORG=mycompany1
SENTRY_PROJECT=mycompany1
PREFIX=dist
SENTRY_CLI=./node_modules/.bin/sentry-cli
VERSION=`$(SENTRY_CLI) releases propose-version`
# setup_release:
# echo "TODO: <PLACEHOLDER>"
setup_release: create_release upload_sourcemaps
create_release:
$(SENTRY_CLI) releases -o $(SENTRY_ORG) new -p $(SENTRY_PROJECT) $(VERSION)
associate_commits:
-$(SENTRY_CLI) releases -o $(SENTRY_ORG) -p $(SENTRY_PROJECT) set-commits --local $(VERSION)
upload_sourcemaps:
$(SENTRY_CLI) releases -o $(SENTRY_ORG) -p $(SENTRY_PROJECT) files \
$(VERSION) upload-sourcemaps --url-prefix "~/" --rewrite --validate $(PREFIX)
create_env:
@echo "version=${VERSION}" > .env