Skip to content

fix(publish): pass NPM_AUTH_TOKEN to npm publish - #24

Merged
roncodes merged 1 commit into
mainfrom
fix/publish-npm-token
Oct 6, 2026
Merged

roncodes merged 1 commit into
mainfrom
fix/publish-npm-token

Conversation

@roncodes

@roncodes roncodes commented Oct 6, 2026

Copy link
Copy Markdown
Member

What

After #23, the v1.2.0 Publish run got as far as the upload and then failed:

npm error 404 Not Found - PUT https://registry.npmjs.org/@fleetbase%2fstorefront

publish.yml never references secrets.NPM_AUTH_TOKEN. Org secrets only reach a job when the workflow names them, so npm received only setup-node's XXXXX-XXXXX-XXXXX-XXXXX placeholder. This PR passes the org token as NODE_AUTH_TOKEN on the publish step, the same way fleetbase-js (release.yml) and fleetops (ember.yml) already do.

Validation

  • The failed run's log shows NODE_AUTH_TOKEN: XXXXX-XXXXX-XXXXX-XXXXX, which is setup-node's placeholder used when no token is given.
  • grep shows no reference to NPM_AUTH_TOKEN anywhere in storefront-js before this change.

Follow-up

After this merges, move the v1.2.0 tag to the merge commit so Publish runs again with the token. 1.2.0 is still not on npm and has no GitHub Release.

No API, docs, or spec impact.

Org secrets only reach a job when the workflow references them. publish.yml
never did, so npm received setup-node's placeholder token and the v1.2.0
publish was rejected with E404 on PUT. Matches fleetbase-js and fleetops.
@roncodes
roncodes merged commit 32aac86 into main Oct 6, 2026
16 checks passed
@roncodes
roncodes deleted the fix/publish-npm-token branch October 6, 2026 08:33
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