forked from getsentry/sentry-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (23 loc) · 662 Bytes
/
Makefile
File metadata and controls
25 lines (23 loc) · 662 Bytes
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
prepare-release:
yarn
yarn clean
yarn build
yarn lint
yarn test
.PHONY: prepare-release
build-docs:
rm -rf ./docs
yarn typedoc --options ./typedoc.js
.PHONY: build-docs
publish-docs: build-docs
rm -rf /tmp/sentry-js-docs | true
mkdir /tmp/sentry-js-docs
cp -r ./docs /tmp/sentry-js-docs/docs
cd /tmp/sentry-js-docs && \
git clone --single-branch --branch gh-pages git@github.com:getsentry/sentry-javascript.git && \
cp -r /tmp/sentry-js-docs/docs/* /tmp/sentry-js-docs/sentry-javascript/ && \
cd /tmp/sentry-js-docs/sentry-javascript && \
git add --all && \
git commit -m "meta: Update docs" && \
git push origin gh-pages
.PHONY: publish-docs