Skip to content

Fix Claude marketplace: npm plugin source and GitHub catalog #4

Fix Claude marketplace: npm plugin source and GitHub catalog

Fix Claude marketplace: npm plugin source and GitHub catalog #4

Workflow file for this run

# Publishes when you push a version tag (e.g. v1.0.1).
# Requires repo secret NPM_TOKEN: granular token with publish access + "Bypass 2FA for automation"
# (otherwise publish fails with EOTP). Classic "Automation" tokens also work.
name: Publish to npm
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
- name: Set version from tag
run: npm version "${GITHUB_REF_NAME#v}" --no-git-tag-version --allow-same-version
- run: npm ci
- run: npm pkg fix
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}