Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Fix pnpm auth token config

haxzieccfb44fd2ea9
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 15e0eb037..c1b984834 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -45,11 +45,10 @@ jobs:
publish: pnpm changeset:release
commit: 'build: update version'
title: 'build: update version'
- - name: Setup npm authentication
- run: |
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
+ - name: Set publishing config
+ run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish to public npm registry
if: steps.changesets.outputs.published == 'true' || github.event_name == 'workflow_dispatch' # run when the package is published via changeset or if a release is triggered manually.
env: