publish 613 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. # Get the latest Git tag
  3. latest_tag=$(git tag --sort=committerdate | grep -E '^vscode-v[0-9]+\.[0-9]+\.[0-9]+$' | tail -1)
  4. if [ -z "$latest_tag" ]; then
  5. echo "No tags found"
  6. exit 1
  7. fi
  8. echo "Latest tag: $latest_tag"
  9. version=$(echo $latest_tag | sed 's/^vscode-v//')
  10. echo "Latest version: $version"
  11. # package-marketplace
  12. vsce package --no-git-tag-version --no-update-package-json --no-dependencies --skip-license -o dist/opencode.vsix $version
  13. # publish-marketplace
  14. vsce publish --packagePath dist/opencode.vsix
  15. # publish-openvsx
  16. npx ovsx publish dist/opencode.vsix -p $OPENVSX_TOKEN