Skip to content

Bump version to 0.0.10 #49

Bump version to 0.0.10

Bump version to 0.0.10 #49

Workflow file for this run

name: Build
on:
push:
branches:
- '*'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Build
run: |
npm ci
npm run build
- name: Run tests
run: |
npm install .
docker compose up --wait
# TODO: Wait for cassandra-setup. Unfortunately `service_completed_successfully` doesn't work as expected
sleep 6
npm exec cassandra-codegen -- --host localhost --datacenter datacenter1 --keyspace test --output-dir src/types
npm run test:types
npm run test
- uses: actions/upload-artifact@v4
with:
name: build_artifacts
path: dist
publish:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
- uses: actions/download-artifact@v4
with:
name: build_artifacts
path: dist
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}