Skip to content

Commit 874ac6c

Browse files
authored
Fix Publish on Tag Workflow (#34)
1 parent 87b0235 commit 874ac6c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737

3838
- name: Set Version from Tag
3939
run: |
40-
VERSION=${GITHUB_REF#refs/tags/}
41-
npm version $VERSION --no-git-tag-version
42-
working-directory: packages/agent-sdk
40+
VERSION=${GITHUB_REF#refs/tags/v}
41+
echo "Setting version to $VERSION"
42+
pnpm --filter @bitte-ai/agent-sdk version "$VERSION" --no-git-tag-version
4343
4444
- name: Configure NPM Authentication
4545
run: |
@@ -48,7 +48,7 @@ jobs:
4848
4949
- name: Publish with npm
5050
run: |
51-
cd packages/agent-sdks
51+
cd packages/agent-sdk
5252
npm publish --access public
5353
env:
5454
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)