Skip to content

Workflow file for this run

on:
push:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
container: node:20-buster
env:
CLICKHOUSE_URL: http://clickhouse:8123
services:
clickhouse:
image: clickhouse/clickhouse-server
env:
CLICKHOUSE_DB: default
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: password
ports:
- 8123:8123
- 9000:9000
steps:
- name: Checkout repo
uses: actions/checkout@v1
with:
fetch-depth: 0
- name: Install dependencies
uses: actions/setup-node@v3
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
env:
NODE_ENV: production
- name: Test
run: yarn test
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install dependencies
uses: actions/setup-node@v3
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
env:
NODE_ENV: production
- name: Bump version
run: yarn changeset version
- name: Publish to npm
uses: changesets/action@v1
with:
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GH_ACTION }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Commit changes
continue-on-error: true
run: |
git config --global user.email "[email protected]"
git config --global user.name "lawg"
git add .
git commit -m "Bump version"
git push -u --set-upstream origin main --force