Skip to content

fix: add labels

fix: add labels #204

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: "package-lock.json"
- run: npm ci
- run: npm run lint
- run: npm run format:check
- run: npm run typecheck
- run: |
BASE_REF="${{ github.base_ref }}"
if [ -z "$BASE_REF" ]; then
BASE_REF="${{ github.ref_name }}"
fi
npm run commitlint -- --from origin/$BASE_REF --to HEAD
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: "package-lock.json"
- run: npm ci
- run: npm test
pack:
needs: [lint, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: "package-lock.json"
- run: npm ci
- run: mkdir -p tarballs
- run: npm pack --workspace segment-tree-rmq --workspace svg-time-series --pack-destination=tarballs
- uses: actions/upload-artifact@v4
with:
name: npm-packages
path: tarballs/*.tgz