Update release workflow and package repositories#302
Conversation
Add OIDC permissions and npm registry config to the release workflow, and remove direct NPM_TOKEN/NX_CLOUD_ACCESS_TOKEN env usage. Standardize package.json repository metadata across multiple packages to point to the monorepo (https://github.com/sei-protocol/sei-js.git) with package-specific directory fields. Files changed: .github/workflows/release.yml, packages/create-sei/package.json, packages/ledger/package.json, packages/mcp-server/package.json, packages/precompiles/package.json, packages/registry/package.json, packages/sei-global-wallet/package.json. These changes enable tokenless (id-token) publishing flows and make package repo metadata accurate for each package in the monorepo.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #302 +/- ##
=======================================
Coverage 79.69% 79.69%
=======================================
Files 83 83
Lines 1305 1305
Branches 187 215 +28
=======================================
Hits 1040 1040
Misses 259 259
Partials 6 6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Normalize package.json formatting (compact files and keywords arrays), change author to @codebycarson, and update repository links (bugs URL and homepage) to point to the sei-js repository. These are metadata/ownership updates and do not alter runtime behavior.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
.github/workflows/release.yml:51
- The publish step runs
pnpm release(which executeschangeset publish), but the workflow no longer provides any npm authentication (noNODE_AUTH_TOKEN/NPM_TOKENand no.npmrctoken setup). Unless npm Trusted Publishing via OIDC is already configured for these packages, this will cause npm publishes to fail (typically with an auth error). Add the appropriate npm auth mechanism (e.g., setNODE_AUTH_TOKENfor this step, or add the required config/flags for OIDC trusted publishing).
# Release builds the packages and calls changeset publish
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "keywords": ["mcp", "model-context-protocol", "evm", "blockchain", "sei", "web3", "smart-contracts", "ai", "agent"], | ||
| "author": "@codebycarson", | ||
| "license": "MIT", |
There was a problem hiding this comment.
This PR’s description focuses on repository metadata and release workflow changes, but this hunk also changes the author field. If this isn’t intentional, it should be reverted; if it is intentional, please update the PR description to reflect the metadata change (and ensure it matches the desired npm package ownership/attribution).
This pull request primarily updates the repository metadata in several
package.jsonfiles to use the correct multi-package (monorepo) format and makes minor improvements to the release workflow. The changes ensure each package correctly references its location in the monorepo and improve release automation compatibility with npm.Repository metadata standardization:
repositoryfield in thepackage.jsonfiles for@sei-js/create-sei,@sei-js/ledger,@sei-js/precompiles,@sei-js/registry, and@sei-js/sei-global-walletto use the object format with the correctdirectoryproperty, ensuring accurate links and improved compatibility with npm and GitHub. [1] [2] [3] [4] [5]repositoryfield inpackages/mcp-server/package.jsonto point to the correct monorepo URL and directory.Release workflow improvements:
permissionsforid-token,contents, andpull-requestsin.github/workflows/release.ymlto support secure publishing and automation.actions/setup-nodewith theregistry-urlfor npm publishing in the release workflow.NPM_TOKEN,NX_CLOUD_ACCESS_TOKEN) from the release workflow, likely due to improved authentication methods.Add OIDC permissions and npm registry config to the release workflow, and remove direct NPM_TOKEN/NX_CLOUD_ACCESS_TOKEN env usage. Standardize package.json repository metadata across multiple packages to point to the monorepo (https://github.com/sei-protocol/sei-js.git) with package-specific directory fields.Files changed: .github/workflows/release.yml, packages/create-sei/package.json, packages/ledger/package.json, packages/mcp-server/package.json, packages/precompiles/package.json, packages/registry/package.json, packages/sei-global-wallet/package.json.
These changes enable tokenless (id-token) publishing flows and make package repo metadata accurate for each package in the monorepo.