build #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'build' | |
permissions: {} | |
on: | |
workflow_dispatch: | |
jobs: | |
build-packages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Install dependencies | |
run: | | |
npm install | |
- name: Build Common package | |
run: | | |
ts-node .build/build_and_prepare.ts common && npm pack | |
- name: Build Node.js package | |
run: | | |
ts-node .build/build_and_prepare.ts node && npm pack | |
- name: Build Web package | |
run: | | |
ts-node .build/build_and_prepare.ts web && npm pack | |
- name: Rename artifacts | |
run: | | |
export CLIENT_VERSION=$(cat package.json | jq -r '.version') | |
mv clickhouse-client-${CLIENT_VERSION}.tgz clickhouse-client.tgz | |
mv clickhouse-client-common-${CLIENT_VERSION}.tgz clickhouse-client-common.tgz | |
mv clickhouse-client-web-${CLIENT_VERSION}.tgz clickhouse-client-web.tgz | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: clickhouse-js-packages | |
path: clickhouse-client*.tgz |