Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ES modules, rollup #5

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @VivekNair @dsafreno
42 changes: 42 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release Please

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: release-please-action

- uses: actions/checkout@v3
name: Checkout repository
if: ${{ steps.release.outputs.release_created }}

- uses: actions/setup-node@v3
with:
node-version: '18.15.0'
cache: 'npm'
cache-dependency-path: package-lock.json
if: ${{ steps.release.outputs.release_created }}

- name: Install and build
run: |
npm install
if: ${{ steps.release.outputs.release_created }}

- name: Publish package to NPM
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_ACCESS_TOKEN }}" > .npmrc
npm publish
if: ${{ steps.release.outputs.release_created }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
lib
lib
.DS_Store
59 changes: 59 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Changelog

## [0.2.1](https://github.com/gentrace/clickhouse-migrations/compare/v0.2.0...v0.2.1) (2023-05-16)


### Bug Fixes

* ensure that tests are working ([#9](https://github.com/gentrace/clickhouse-migrations/issues/9)) ([1c6844b](https://github.com/gentrace/clickhouse-migrations/commit/1c6844bf3d5a54eede6ad0e6d124ffa2df352841))

## [0.2.0](https://github.com/gentrace/clickhouse-migrations/compare/v0.1.16...v0.2.0) (2023-05-16)


### Features

* add ES modules, rollup and expose TS handler directly to migrate([#7](https://github.com/gentrace/clickhouse-migrations/issues/7)) ([0aa2781](https://github.com/gentrace/clickhouse-migrations/commit/0aa278199a5e1e826b8cfd277f97b4f060aab124))

## [0.1.16](https://github.com/gentrace/clickhouse-migrations/compare/v0.1.15...v0.1.16) (2023-04-06)


### Bug Fixes

* remove package cd ([ea6ed67](https://github.com/gentrace/clickhouse-migrations/commit/ea6ed679333e43c8aacd0d41d4a2bac918346493))

## [0.1.15](https://github.com/gentrace/clickhouse-migrations/compare/v0.1.14...v0.1.15) (2023-04-06)


### Miscellaneous Chores

* release 0.1.15 ([87129d5](https://github.com/gentrace/clickhouse-migrations/commit/87129d5c73561fef3fd813e9230f54d68c82d8a6))

## 0.1.14 (2023-04-06)


### Features

* [[#1](https://github.com/gentrace/clickhouse-migrations/issues/1)] improve comments ([0c24d4a](https://github.com/gentrace/clickhouse-migrations/commit/0c24d4afca157024ce0a24caacae62a5b069e229))
* add supporting query settings, add more tests ([56ab433](https://github.com/gentrace/clickhouse-migrations/commit/56ab4337830aa2922e72292dfbe22ecbdbe73292))
* add ts eslint parser ([7d8341b](https://github.com/gentrace/clickhouse-migrations/commit/7d8341bf7889740966cbfdec27aa9eda266882e2))
* avoid imidiately close connection ([21cfcb0](https://github.com/gentrace/clickhouse-migrations/commit/21cfcb0b036d7dcf9e8c035f3330f38480211e7a))
* correct connection parameters ([351becc](https://github.com/gentrace/clickhouse-migrations/commit/351becce38b051cf8f26fe09ff6de1bd4803a888))
* correct options name, use env variables as default for options ([5eddb48](https://github.com/gentrace/clickhouse-migrations/commit/5eddb480b02f215020f4f6eeff3c2ed3fd7d6670))
* fix lint errors ([93afe86](https://github.com/gentrace/clickhouse-migrations/commit/93afe864fe1f7eb4ac97ba55da8c695b2d14b5b2))
* improve parsing comments in migrations ([421a8e9](https://github.com/gentrace/clickhouse-migrations/commit/421a8e9ae9b7ff202b3be71df8f5f00e1197ec2d))
* improve readme file ([57525e7](https://github.com/gentrace/clickhouse-migrations/commit/57525e749c298539135d0335c757eacf293ee077))
* improve tests ([9703d6e](https://github.com/gentrace/clickhouse-migrations/commit/9703d6eec8d82d169e3512256e7dd92cef0407e2))
* improve types usage ([a632b27](https://github.com/gentrace/clickhouse-migrations/commit/a632b2707947aab9bf283bfa3ec54cf76511b06a))
* revert for creating db ([9e47dd8](https://github.com/gentrace/clickhouse-migrations/commit/9e47dd88f30ebcb570b4704b47c2b8d970722a3d))
* update package versions, update eslinter conf ([9d9e5ff](https://github.com/gentrace/clickhouse-migrations/commit/9d9e5ffe0bcf88fd536a1547b6647c2483df67b2))
* update version ([e6ad270](https://github.com/gentrace/clickhouse-migrations/commit/e6ad27048a5c9022d53565e9436bc4a3b8365c76))


### Bug Fixes

* add in release please ([626d478](https://github.com/gentrace/clickhouse-migrations/commit/626d4783b6c269ad1e47dc3997b5a11353c5f249))


### Miscellaneous Chores

* release 0.1.14 ([46d6426](https://github.com/gentrace/clickhouse-migrations/commit/46d64268b8a58ab5b8d128c11698d2e5c0831b3c))
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@

# clickhouse-migrations
# @gentrace/clickhouse-migrations

> ClickHouse Migrations CLI

## Install

```sh
npm install --global clickhouse-migrations
npm install @gentrace/clickhouse-migrations
```

## Usage
Expand Down
Loading