Skip to content

chore: updates build #3

chore: updates build

chore: updates build #3

name: Test build and publish library
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Test-and-Build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build:ci
- name: Test
run: npm run test:ci
- name: Archive build
if: success()
uses: actions/upload-artifact@v4
with:
name: deploy_dist
path: dist
- name: Archive code coverage result
if: success()
uses: actions/upload-artifact@v4
with:
name: deploy_coverage
path: coverage