diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..b73cf2d --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: Publish + +on: + workflow_dispatch: + inputs: + npm-tag: + description: 'NPM tag to publish the package (e.g., latest, beta, etc.)' + required: false + default: 'latest' + type: string + dry-run: + description: 'Perform a dry run (true/false)' + required: false + default: false + type: boolean + +jobs: + publish: + uses: WJSoftware/cicd/.github/workflows/npm-publish.yml@main + with: + node-version: 24 + build-script: build + test-script: test + npm-tag: ${{ inputs.npm-tag || 'latest' }} + dry-run: ${{ inputs.dry-run || false }} + secrets: inherit diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c2bb480 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,14 @@ +name: Test + +on: + pull_request: + branches: [ main ] + +jobs: + test: + uses: WJSoftware/cicd/.github/workflows/npm-test.yml@main + with: + node-version: 24 + build-script: build + test-script: test + build: false