Skip to content

Commit 8d9aac7

Browse files
committed
Merge branch 'main'
1 parent f28890f commit 8d9aac7

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: On-Demand Unit Testing
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Branch or tag to test'
8+
required: true
9+
default: 'main'
10+
11+
jobs:
12+
test:
13+
name: On-Demand Unit Testing on ${{ inputs.ref }}
14+
uses: WJSoftware/cicd/.github/workflows/npm-test.yml@v0.2
15+
secrets: inherit
16+
with:
17+
pwsh: false
18+
build: false
19+
ref: ${{ inputs.ref }}

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish NPM Package
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
node-version:
7+
description: Node.js version to use.
8+
required: false
9+
type: choice
10+
options:
11+
- '18'
12+
- '20'
13+
- '22'
14+
- '24'
15+
default: '24'
16+
dry-run:
17+
description: Performs a dry run of the publish.
18+
required: false
19+
type: boolean
20+
default: false
21+
22+
jobs:
23+
publish:
24+
name: Publish NPM Package
25+
uses: WJSoftware/cicd/.github/workflows/npm-publish.yml@v0.1.0
26+
secrets: inherit
27+
with:
28+
node-version: ${{ inputs.node-version }}
29+
npm_tag: latest
30+
dry_run: ${{ inputs.dry-run }}

.github/workflows/test-pr.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Test Pull Request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
test:
10+
name: Unit Testing
11+
uses: WJSoftware/cicd/.github/workflows/npm-test.yml@v0.2
12+
secrets: inherit
13+
with:
14+
pwsh: false
15+
build: false
16+
ref: ${{ github.head_ref }}

0 commit comments

Comments
 (0)