Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Move npm setup before changeset
haxzie committed
May 29, 2025 at 16:16 UTC
54ff44299713cfc2842b6f17384fb6be12d1e1ae
1 file changed
+2
-8
.github/workflows/release.yml
+2
-8
@@ -35,6 +35,8 @@ jobs:
35
36
- name: Run Build
37
run: pnpm run build
38
+ - name: Set up .npmrc
39
+ run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
40
- name: Create Release Pull Request & Publish packages
41
id: changesets
42
uses: changesets/action@v1
@@ -45,11 +47,3 @@ jobs:
47
publish: pnpm changeset:release
48
commit: 'build: update version'
49
title: 'build: update version'
48
- - name: Set up .npmrc
49
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
50
- - name: Publish to public npm registry
51
- 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.
52
- env:
53
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
54
- PUBLISHED_PACKAGES: ${{ steps.changesets.outputs.publishedPackages }}
55
- run: pnpm changeset:release