diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index d2cf6d5..871a9ac 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "sourcegraph", "description": "Search and read code in a Sourcegraph service at pinned commits, and register or maintain its repositories, through MCP or the sourcegraph CLI.", - "version": "0.5.0", + "version": "0.5.1", "author": { "name": "context4ai" }, diff --git a/.github/workflows/cli-release.yml b/.github/workflows/cli-release.yml index 33822d9..36535cc 100644 --- a/.github/workflows/cli-release.yml +++ b/.github/workflows/cli-release.yml @@ -43,9 +43,10 @@ jobs: # NPM_TOKEN publishes the first version; once npm lists this workflow as # a trusted publisher of @c4a/sourcegraph, the token can be removed and # PUBLISH_WITH_OIDC set to true. + # With PUBLISH_WITH_OIDC the token is not passed, so npm uses OIDC. - name: Publish to npm env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ vars.PUBLISH_WITH_OIDC != 'true' && secrets.NPM_TOKEN || '' }} OIDC: ${{ vars.PUBLISH_WITH_OIDC }} if: env.NODE_AUTH_TOKEN != '' || env.OIDC == 'true' working-directory: cli diff --git a/cli/package.json b/cli/package.json index 85ba056..8e9df4c 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "@c4a/sourcegraph", - "version": "0.5.0", + "version": "0.5.1", "description": "Command-line client for Sourcegraph: search and read code at pinned commits, register and manage repositories, personal and site settings.", "license": "MIT", "type": "module", diff --git a/cli/src/version.ts b/cli/src/version.ts index 243bfad..48b2fd7 100644 --- a/cli/src/version.ts +++ b/cli/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.5.0'; +export const VERSION = '0.5.1';