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
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish NPM Package

on:
workflow_dispatch:
inputs:
node-version:
description: Node.js version to use.
required: false
type: choice
options:
- '18'
- '20'
- '22'
- '24'
default: '24'
dry-run:
description: Performs a dry run of the publish.
required: false
type: boolean
default: false

jobs:
publish:
name: Publish NPM Package
uses: WJSoftware/cicd/.github/workflows/[email protected]
secrets: inherit
with:
node-version: ${{ inputs.node-version }}
npm-tag: latest
dry-run: ${{ inputs.dry-run }}
28 changes: 28 additions & 0 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test Pull Request

on:
pull_request:
branches:
- **
workflow_dispatch:
inputs:
node-version:
description: Node.js version to use.
required: false
type: choice
options:
- '18'
- '20'
- '22'
- '24'
default: '24'

jobs:
test:
name: Unit Testing
uses: WJSoftware/cicd/.github/workflows/[email protected]
secrets: inherit
with:
pwsh: false
build: false
node-version: ${{ inputs.node-version }}