Skip to content
Merged
Show file tree
Hide file tree
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
30 changes: 28 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,22 @@ jobs:

- name: Publish VS Code extension to Marketplace
if: ${{ steps.publish.outputs.published == 'true' && env.VSCE_PAT != '' }}
run: npx --yes @vscode/vsce publish --packagePath "${{ steps.vsix.outputs.path }}" --pat "$VSCE_PAT"
continue-on-error: true
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: |
set +e
OUT=$(npx --yes @vscode/vsce publish --packagePath "${{ steps.vsix.outputs.path }}" --pat "$VSCE_PAT" 2>&1)
CODE=$?
echo "$OUT"
if [ $CODE -eq 0 ]; then
exit 0
fi
if echo "$OUT" | grep -qiE "already exists|already published"; then
echo "ℹ Already published at this version — treating as success." >> $GITHUB_STEP_SUMMARY
exit 0
fi
exit $CODE

- name: Notice — VS Code Marketplace skipped
if: ${{ steps.publish.outputs.published == 'true' && env.VSCE_PAT == '' }}
Expand All @@ -210,9 +223,22 @@ jobs:

- name: Publish to Open VSX
if: ${{ steps.publish.outputs.published == 'true' && env.OVSX_PAT != '' }}
run: npx --yes ovsx publish "${{ steps.vsix.outputs.path }}" --pat "$OVSX_PAT"
continue-on-error: true
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}
run: |
set +e
OUT=$(npx --yes ovsx publish "${{ steps.vsix.outputs.path }}" --pat "$OVSX_PAT" 2>&1)
CODE=$?
echo "$OUT"
if [ $CODE -eq 0 ]; then
exit 0
fi
if echo "$OUT" | grep -qiE "already exists|already published|version.*exists"; then
echo "ℹ Already published at this version — treating as success." >> $GITHUB_STEP_SUMMARY
exit 0
fi
exit $CODE

- name: Notice — Open VSX skipped
if: ${{ steps.publish.outputs.published == 'true' && env.OVSX_PAT == '' }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ coverage
.env.local
.env.*.local
.tokenometer-cache
packages/vscode/*.vsix
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tokenometer-vscode",
"version": "0.0.3",
"version": "0.1.0",
"displayName": "Tokenometer",
"description": "Tokenometer for VS Code / Cursor — live token count and USD cost in the status bar for LLM prompts (Claude, GPT-4o, Gemini, Mistral, Cohere).",
"publisher": "faraa2m",
Expand Down
Binary file removed packages/vscode/tokenometer-vscode-0.0.3.vsix
Binary file not shown.
Loading