Skip to content

Commit

Permalink
chore(release): prepare to release influxdb3-js-0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Jun 29, 2023
1 parent c1caf09 commit 948316e
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.1.0 [unreleased]
## 0.1.0 [2023-06-29]

- initial release of new client version
- write using v2 api
- query using FlightSQL
- query using InfluxQl
35 changes: 35 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 ""
1 change: 0 additions & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "influxdb3-client-examples",
"version": "0.0.0",
"main": "index.js",
"license": "MIT",
"private": true,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"build": "yarn workspaces run build",
"test": "yarn --cwd packages/client build && yarn workspaces run test",
"test:ci": "yarn workspaces run test:ci",
"test:unit": "yarn workspaces run test:unit",
"coverage": "cd packages/client && yarn build && yarn coverage",
"coverage:ci": "cd packages/client && yarn build && yarn coverage:ci",
"flight": "node ./scripts/generate-flight"
Expand Down
1 change: 1 addition & 0 deletions packages/client-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"apidoc:extract": "echo \"Nothing to do\"",
"test": "echo \"Nothing to do\"",
"test:unit": "echo \"Nothing to do\"",
"test:ci": "echo \"Nothing to do\"",
"build": "yarn run clean && cpr ../client/dist ./dist",
"clean": "rimraf dist"
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/impl/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const CLIENT_LIB_VERSION = '0.0.0'
export const CLIENT_LIB_VERSION = '0.1.0'

0 comments on commit 948316e

Please sign in to comment.