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
34 changes: 34 additions & 0 deletions .github/workflows/npm-publish-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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

on:
release:
types: [published]
workflow_dispatch:
inputs:
publish:
description: 'Set to true to publish to npm'
required: true
type: boolean
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: '24'
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
- run: npm run test:types
- run: npm run prepublishOnly
# TODO: Create a way to run non-integration tests that don't rely on a MarkLogic Server instance
- run: npm publish --registry=https://registry.npmjs.org # Or: npm stage publish
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The Progress® MarkLogic® Node Client API provides access to the MarkLogic data

## System Requirements

The Node Client 4.1.0 release requires Node.js 22 or higher. Testing has verified that the client will
The Node Client 4.3.0 release requires Node.js 22 or higher. Testing has verified that the client will
run successfully on Node 20, but we recommend 22 or higher based on
[the Node.js release roadmap](https://nodejs.org/en/about/previous-releases), as Node 20 enters
end-of-life in April 2026 while Node 22 is supported through April 2027.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "marklogic",
"description": "The official MarkLogic Node.js client API.",
"homepage": "https://github.com/marklogic/node-client-api",
"version": "4.1.0",
"version": "4.3.0",
"license": "Apache-2.0",
"main": "./lib/marklogic.js",
"types": "marklogic.d.ts",
Expand Down
Loading