Skip to content

CI: NPM publish workflow failing due to expired authentication token #20

@aanojima

Description

@aanojima

Problem

The "Publish to NPM" GitHub Actions workflow is failing because the NPM authentication token stored in repository secrets has expired or been revoked.

Error Message

npm notice Access token expired or revoked. Please try logging in again.
npm error code E404
npm error 404 Not Found - PUT https://registry.npmjs.org/@cognitionai%2fmetabase-mcp-server - Not found

Failed Workflow Run

https://github.com/CognitionAI/metabase-mcp-server/actions/runs/21035937246

Resolution Steps

A repository maintainer with admin access needs to:

  1. Generate a new NPM access token:

    • Log in to npmjs.com
    • Go to Access Tokens settings
    • Create a new "Automation" or "Publish" token with appropriate permissions for the @CognitionAI scope
  2. Update the GitHub repository secret:

    • Go to repository Settings → Secrets and variables → Actions
    • Update the NPM_TOKEN secret (or whatever the token is named) with the new value
  3. Re-run the failed workflow to verify the fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions