From 2cf6f5bc6b1bec49aa7bc1e32da07c99e077351c Mon Sep 17 00:00:00 2001 From: Ryan Dew <146854757+rjdew-progress@users.noreply.github.com> Date: Tue, 8 Sep 2026 12:31:22 -0700 Subject: [PATCH 1/2] MLE-31583 Create npm-publish-packages.yml --- .github/workflows/npm-publish-packages.yml | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/npm-publish-packages.yml diff --git a/.github/workflows/npm-publish-packages.yml b/.github/workflows/npm-publish-packages.yml new file mode 100644 index 00000000..0f84e59c --- /dev/null +++ b/.github/workflows/npm-publish-packages.yml @@ -0,0 +1,27 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages + +name: Node.js Publish Package + +on: + release: + types: [published] +permissions: + id-token: write # Required for OIDC + contents: read +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - uses: actions/setup-node@v6 + with: + node-version: '22' + registry-url: 'https://registry.npmjs.org' + package-manager-cache: false # never use caching in release builds + - run: npm ci + - run: npm run build --if-present +# TODO: Create a way to run non-integration tests that don't rely on a MarkLogic Server instance +# - run: npm test + - run: npm publish # Or: npm stage publish From dfb9c194a094792356b78421b366b323b2adf896 Mon Sep 17 00:00:00 2001 From: Ryan Dew <146854757+rjdew-progress@users.noreply.github.com> Date: Tue, 8 Sep 2026 12:42:47 -0700 Subject: [PATCH 2/2] Apply batched suggestions from copilot code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/npm-publish-packages.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish-packages.yml b/.github/workflows/npm-publish-packages.yml index 0f84e59c..413483ad 100644 --- a/.github/workflows/npm-publish-packages.yml +++ b/.github/workflows/npm-publish-packages.yml @@ -1,4 +1,4 @@ -# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# This workflow runs a Node.js build and publishes the package to the npm registry when a release is published # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages name: Node.js Publish Package @@ -22,6 +22,6 @@ jobs: package-manager-cache: false # never use caching in release builds - run: npm ci - run: npm run build --if-present -# TODO: Create a way to run non-integration tests that don't rely on a MarkLogic Server instance -# - run: npm test + - run: npm run test:types + # TODO: Create a way to run non-integration tests that don't rely on a MarkLogic Server instance - run: npm publish # Or: npm stage publish