forked from InfluxCommunity/influxdb3-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (33 loc) · 1.27 KB
/
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
28
29
30
31
32
33
34
35
# **Releasing a new version**
# Ensure that:
# - You have administrator access to this repo on GitHub
# - You have permissions to publish to the [influxdata](https://www.npmjs.com/org/influxdata) organization on npm
# - You are on `main` and the working tree is clean
# Then run the publish target with VERSION specified:
# ```
# make publish VERSION=1.8.0
# ```
.DEFAULT_GOAL := help
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo ""
@echo " publish to publish packages to specified version by VERSION property. make publish VERSION=1.1.0"
@echo ""
publish:
$(if $(VERSION),,$(error VERSION is not defined. Pass via "make publish VERSION=1.1.0"))
git checkout main
git pull
yarn install --frozen-lockfile
node scripts/change-version.js
yarn run build
yarn run test:unit
@echo "Publishing $(VERSION)..."
git commit -am "chore(release): prepare to release influxdb3-js-$(VERSION)"
npx lerna publish $(VERSION)
@echo "Publish successful"
@echo ""
@echo "Next steps:"
@echo " - publish updated API documentation by: \"yarn apidoc && yarn apidoc:gh-pages\""
@echo " - add new version to CHANGELOG.md"
@echo " - push changes to repository by : \"git commit -am 'chore(release): prepare to next development iteration [skip CI]' && git push\""
@echo ""