Skip to content

Conversation

vkarpov15
Copy link
Collaborator

Summary

Automate publishing of mongoose, with provenance enabled. I have --dry-run set for now for testing purposes, but once we test that out we should be able to publish automatically.

Examples

@vkarpov15 vkarpov15 added this to the 8.19.2 milestone Oct 10, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a GitHub Actions workflow to automate the publishing of the mongoose package to npm with provenance enabled. The workflow is currently configured with --dry-run for testing purposes before enabling actual publishing.

  • Adds automated npm publishing triggered by GitHub releases and manual workflow dispatch
  • Configures provenance for enhanced package security and supply chain transparency
  • Sets up proper permissions and authentication for npm publishing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

LGTM

- name: Dry run publish with provenance
run: npm publish --provenance --access public --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

If trusted publishing is configured, this shouldnt be necessary anymore, or is this something to do later?

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