diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..7008fcb --- /dev/null +++ b/.github/workflows/publish.yml @@ -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/npm-publish.yml@0.1.0 + secrets: inherit + with: + node-version: ${{ inputs.node-version }} + npm-tag: latest + dry-run: ${{ inputs.dry-run }} diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml new file mode 100644 index 0000000..eed3469 --- /dev/null +++ b/.github/workflows/test-pr.yml @@ -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/npm-test.yml@0.1.0 + secrets: inherit + with: + pwsh: false + build: false + node-version: ${{ inputs.node-version }}