Skip to content

Commit 2d5a2f6

Browse files
authored
feat: Add CI/CD (#38)
1 parent 46952ef commit 2d5a2f6

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
npm-tag:
7+
description: 'NPM tag to publish the package (e.g., latest, beta, etc.)'
8+
required: false
9+
default: 'latest'
10+
type: string
11+
dry-run:
12+
description: 'Perform a dry run (true/false)'
13+
required: false
14+
default: false
15+
type: boolean
16+
17+
jobs:
18+
publish:
19+
uses: WJSoftware/cicd/.github/workflows/npm-publish.yml@main
20+
with:
21+
node-version: 24
22+
build-script: build
23+
test-script: test
24+
npm-tag: ${{ inputs.npm-tag || 'latest' }}
25+
dry-run: ${{ inputs.dry-run || false }}
26+
secrets: inherit

.github/workflows/test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
test:
9+
uses: WJSoftware/cicd/.github/workflows/npm-test.yml@main
10+
with:
11+
node-version: 24
12+
build-script: build
13+
test-script: test
14+
build: false

0 commit comments

Comments
 (0)