Skip to content

Commit 5e07693

Browse files
committed
Add test and publish pipeline
1 parent dcd3de8 commit 5e07693

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish Package
2+
permissions:
3+
id-token: write
4+
on:
5+
push:
6+
tags:
7+
- '*'
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v5
13+
- uses: actions/setup-node@v6
14+
with:
15+
node-version: '24.x'
16+
registry-url: 'https://registry.npmjs.org'
17+
- run: npm version from-git --git-tag-version=false
18+
- run: npm ci
19+
- run: npm run build
20+
- run: npm publish --tag latest

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Run Tests
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
pull_request:
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v5
12+
- uses: actions/setup-node@v6
13+
with:
14+
node-version: '24.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
- run: npm ci
17+
- run: npm run build
18+
- run: npm run test

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 24.13.0

0 commit comments

Comments
 (0)