Skip to content

Commit c36e2f5

Browse files
committed
Add some debug
1 parent 87b0235 commit c36e2f5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,14 @@ jobs:
3737

3838
- name: Set Version from Tag
3939
run: |
40-
VERSION=${GITHUB_REF#refs/tags/}
41-
npm version $VERSION --no-git-tag-version
40+
set -x # Show each command as it's run
41+
VERSION=${GITHUB_REF#refs/tags/v}
42+
echo "Setting version to $VERSION"
43+
npm version "$VERSION" --no-git-tag-version || {
44+
echo "❌ npm version failed, showing log:"
45+
cat /home/runner/.npm/_logs/*.log || echo "No log found"
46+
exit 1
47+
}
4248
working-directory: packages/agent-sdk
4349

4450
- name: Configure NPM Authentication

0 commit comments

Comments
 (0)