Skip to content

Conversation

@tanuimartin4-code
Copy link

@tanuimartin4-code tanuimartin4-code commented Dec 5, 2025

This workflow runs tests and publishes a Node.js package to GitHub Packages upon release creation.

Description

Issue(s) fixed

Fixes #

Preview

Checklist

  • If this PR updates or adds documentation content that changes or adds technical meaning, it has received an approval from an engineer or DevRel from the relevant team.
  • If this PR updates or adds documentation content, it has received an approval from a technical writer.

External contributor checklist

  • I've read the contribution guidelines.
  • I've created a new issue (or assigned myself to an existing issue) describing what this PR addresses.

Note

Adds a GitHub Actions workflow that runs tests and publishes the Node package to GitHub Packages when a release is created.

  • GitHub Actions:
    • New workflow: /.github/workflows/npm-publish-github-packages.yml triggers on release: created.
    • Build job: Node 20, npm ci, npm test.
    • Publish job: Depends on build; configures GitHub Packages registry, runs npm ci and npm publish with GITHUB_TOKEN.

Written by Cursor Bugbot for commit 206150c. This will update automatically on new commits. Configure here.

This workflow runs tests and publishes a Node.js package to GitHub Packages upon release creation.
@tanuimartin4-code tanuimartin4-code requested review from a team as code owners December 5, 2025 16:26
@vercel
Copy link

vercel bot commented Dec 5, 2025

@tanuimartin4-code is attempting to deploy a commit to the Consensys Team on Vercel.

A member of the Team first needs to authorize it.

node-version: 20
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
Copy link

Choose a reason for hiding this comment

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

Bug: Cannot publish package marked as private

The workflow attempts npm publish but package.json has "private": true set. Private packages cannot be published to any npm registry. The publish step will fail with an error indicating that this package has been marked as private.

Fix in Cursor Fix in Web

@tanuimartin4-code
Copy link
Author

env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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.

1 participant