Skip to content

Allow multiple Ustrd when parsing remittanceInfo #3

Allow multiple Ustrd when parsing remittanceInfo

Allow multiple Ustrd when parsing remittanceInfo #3

Workflow file for this run

name: CI and Publish
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci-and-publish:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
include:
- node-version: 22.x
publish: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies with pnpm
run: pnpm install --frozen-lockfile
- name: Run build (TypeScript compilation)
run: pnpm run build
- name: Run Biome (linter and formatter)
run: pnpm exec biome ci
- name: Run tests (Vitest)
run: pnpm run test -- --run
- name: Publish to NPM
if: matrix.publish && github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}