Fix NPM_TOKEN so CI can publish @stellar/varial-sdk
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- github-actions, node.js, typescript
Research direction
Start with .github/workflows/deployFreighterApiProduction.yml and the linked failed run to understand how NPM_TOKEN is used. Check the token’s package access, expiry, and 2FA-bypass setting, then verify by running the beta workflow with a throwaway prerelease version. Done means CI publishes successfully without a manual publish; also deprecate 0.0.0-stage as specified.
Written by the indexing model from the issue text.
Description
TL;DR: The Deploy @stellar/varial-sdk workflow in stellar/freighter can't publish the new package. Its NPM_TOKEN was rejected on launch day, so 7.0.0 was published by hand from a maintainer's laptop. Until the token is fixed, every SDK release needs a person with npm publish rights to do it manually.
What happened
- Oct 28: the workflow built and packed
@stellar/[email protected], then the upload failed withE404 Not Found - PUT https://registry.npmjs.org/@stellar%2fvarial-sdk. npm returns 404, not 403, when a token isn't allowed to publish a package. 7.0.0was then published manually, and islateston npm.- The
stellar-npm-ciaccount has since been added as a maintainer of@stellar/varial-sdk. The CI path has not been re-run since, so it is unknown whether that alone fixes it.
Likely cause: NPM_TOKEN is a granular access token scoped to selected packages (e.g. only @stellar/freighter-api). Being a maintainer doesn't help if the token itself doesn't list the package.
To do
- Ops: check the token's package access, and either add
@stellar/varial-sdkor scope it to the@stellarorg. Confirm its expiry date and that "bypass 2FA" is on. - Verify by running the beta workflow (Deploy @stellar/varial-sdk (Beta)) with a throwaway prerelease version.
- Deprecate the stray
0.0.0-stageversion left over from the manual publish:npm deprecate @stellar/[email protected] "Placeholder, do not use".
Accept: a CI run publishes @stellar/varial-sdk without anyone publishing by hand.
Details (for agents)
- Failed run: https://github.com/stellar/freighter/actions/runs/40788570456 (Oct 28 23:36 UTC).
- Workflow:
.github/workflows/deployFreighterApiProduction.ymlusesactions/setup-nodewithregistry-url: https://registry.npmjs.organdNODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}, thennpm publish --access publicfrom@stellar/freighter-api/(the directory keeps its old name; the package name comes from itspackage.json). - Current npm maintainers of both
@stellar/varial-sdkand@stellar/freighter-api:stellar-npm-ci,stellar-npm,quietbits,jacekn,fnando_sdf,cassiomg,piyalbasu. - npm versions:
0.0.0-stage(23:51 UTC) and7.0.0(23:52 UTC), both Oct 28. The SDK version must never drop below4.2.0(the extension picks the signMessage/signAuthEntry response format from it).
- Dominant language
- TypeScript
- Stars
- 122
- Forks
- 62
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 41
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stellar/freighter
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
Write the banner publishing guidePossibly taken @aristidesstaffieri claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
stellar/freighter#3152 · 1 assignee ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 2 days
-
Dont call blockaid on empty token listMay be free again A pull request for this issue was closed without being merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 2 days
-
follow-up
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
All issues in stellar/freighter
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zabuton-app/meguri#875 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
iruzen-dono/workless#117 ·
Maintainers usually reply within 1 day
-
area:api area:web wave wave:trivial
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vetro-protocol/vetro-monorepo#1321 ·
Maintainers usually reply within 1 day