Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ jobs:

- name: Build
run: bun run build

- name: Configure NPM
- name: Set Version from Tag
run: |
cd packages/agent-sdk
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
VERSION=${GITHUB_REF#refs/tags/}
npm version $VERSION --no-git-tag-version
working-directory: packages/agent-sdk

- name: Publish to NPM
- name: Publish with npm
run: |
cd packages/agent-sdk
bun publish --no-git-checks
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}