Skip to content

Publish to VS Code MarketPlace & update Sentry #8

Publish to VS Code MarketPlace & update Sentry

Publish to VS Code MarketPlace & update Sentry #8

Workflow file for this run

name: Publish to VS Code MarketPlace
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Get latest tag
run: |
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0")
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: |
npm ci
npm install -g vsce
- name: Update version in package.json
run: |
jq --arg version "$LATEST_TAG" '.version = $version' package.json > package.tmp.json
mv package.tmp.json package.json
shell: bash
- name: Verify updated package.json
run: cat package.json
- name: Package VS Code Extension
run: vsce package
- name: Upload VSIX artifact
uses: actions/upload-artifact@v4
with:
name: vsce-package
path: "*.vsix"
# - name: Publish to VS Code Marketplace
# env:
# VSCE_PAT: ${{ secrets.VSCE_PAT }}
# run: vsce publish -p $VSCE_PAT
- name: Run Sentry Release
run: |
./sentry-release.yml
shell: bash