Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Test

on: push

jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Build validation package
run: npm run build

- name: Run tests
run: npm test

- name: Build example
run: npm run example
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish to NPM

on:
push:
branches:
- master

jobs:
publish:
name: Publish Package to NPM
runs-on: ubuntu-latest

permissions:
contents: read # Read repository code
id-token: write # Generate OIDC token for npm authentication

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm install

- name: Build validation package
run: npm run build --workspace=@spine-event-engine/validation-ts
# This runs: buf generate → patch → tsc (via prepublishOnly)

- name: Publish to npm with provenance
run: npm publish --workspace=@spine-event-engine/validation-ts --provenance --access public
52 changes: 52 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Dependencies
node_modules/

# Build output
dist/
*.tsbuildinfo

# Generated code (Protobuf)
src/generated/
tests/generated/

# Test coverage
coverage/
*.lcov
.nyc_output/

# IDE and editors
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store

# OS files
Thumbs.db
.AppleDouble
.LSOverride

# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
pnpm-debug.log*

# Temporary files
*.tmp
.cache/
.temp/

# Environment and local config
.env
.env.local
.env.*.local
.claude/settings.local.json

# Package manager lock files (libraries should not commit lock files)
package-lock.json
yarn.lock
pnpm-lock.yaml
Loading