Skip to content

Conversation

@jbudz
Copy link
Collaborator

@jbudz jbudz commented Sep 4, 2025

Release workflow

  1. npm version <version>
  2. git push <remote> <branch>
  3. git push <remote> <tag>
  4. Releases -> Draft a new release -> Publish release
  5. publish.yml runs and pushes the package to npm

@jbudz jbudz requested review from a team, Copilot and kc13greiner September 4, 2025 19:36
Copy link

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 an automated npm publishing workflow that triggers when a GitHub release is published. The workflow verifies the release tag matches the package.json version before publishing to npm with provenance.

  • Adds automated npm package publishing via GitHub Actions
  • Includes tag/version verification to prevent mismatched releases
  • Uses provenance for enhanced package security

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

exit 1
fi
- run: npm ci --ignore-scripts
- run: npm publish --provenance
Copy link

Copilot AI Sep 4, 2025

Choose a reason for hiding this comment

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

The npm publish step is missing the NODE_AUTH_TOKEN environment variable which is required for authentication to npmjs. Add env: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} to this step.

Suggested change
- run: npm publish --provenance
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

@jbudz jbudz Sep 4, 2025

Choose a reason for hiding this comment

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

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