Skip to content

MLE-31583 explicitly run prepublishOnly to generate SBOM - #1125

Merged
rjdew-progress merged 1 commit into
masterfrom
rjdew-progress-patch-2
Sep 10, 2026
Merged

MLE-31583 explicitly run prepublishOnly to generate SBOM#1125
rjdew-progress merged 1 commit into
masterfrom
rjdew-progress-patch-2

Conversation

@rjdew-progress

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The workflow’s new publish input is not enforced and prepublishOnly would be executed twice during npm publish unless the publish step is adjusted.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the npm publish GitHub Actions workflow to support SBOM generation via an explicit prepublishOnly run, and adds a manual dispatch input intended to control publishing.

Changes:

  • Added a workflow_dispatch boolean input (publish) intended to toggle whether a manual run publishes to npm.
  • Explicitly runs npm run prepublishOnly before publishing (to generate SBOM as part of the publish pipeline).
File summaries
File Description
.github/workflows/npm-publish-packages.yml Adds workflow_dispatch input and runs prepublishOnly during the publish workflow.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

- 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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scripts are disabled in the .npmrc file.

@rjdew-progress
rjdew-progress merged commit c3d2a85 into master Sep 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants