diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..92689e4f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,18 @@ +# See https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages +name: Publish Package to npmjs +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v3 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 4fb44486..f6638db5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@clickhouse/client", - "version": "0.0.4", + "version": "0.0.5", "description": "Official JS client for ClickHouse DB", "license": "Apache-2.0", "keywords": [