-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
22 lines (19 loc) · 855 Bytes
/
makefile
File metadata and controls
22 lines (19 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
statistics:
@wget -q https://images.devsapp.cn/tools/git-statistics.sh && bash git-statistics.sh && rm git-statistics.sh
release-dev:
gsed -i "s/^Version: .*/Version: dev/" publish.yaml; \
git diff --exit-code; \
npm run publish
update-version:
current_version=$$(curl -s https://api.devsapp.cn/v3/packages/fc3-domain/release/latest | jq -r '.body.tag_name'); \
echo $$current_version;\
major_version=$$(echo $$current_version | cut -d"." -f1); \
minor_version=$$(echo $$current_version | cut -d"." -f2); \
patch_version=$$(echo $$current_version | cut -d"." -f3); \
new_patch_version=$$((patch_version + 1)); \
new_version=$$major_version.$$minor_version.$$new_patch_version; \
echo $$new_version;\
sed -i "s/^Version: .*/Version: $$new_version/" publish.yaml; \
git diff --exit-code || true
release-prod: update-version
npm run publish