Publish to VS Code MarketPlace & update Sentry #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22" | |
- name: Install dependencies | |
run: | | |
npm ci | |
npm install -g vsce | |
- name: Replace sentry_dns with SENTRY_URL from secrets | |
run: | | |
sed -i "s#https://[email protected]/20#${{ secrets.SENTRY_URL }}#g" ./src/constants/organization.ts | |
shell: bash | |
- name: Verify updated organization.ts | |
run: cat ./src/constants/organization.ts | |
- name: Package VS Code Extension | |
run: vsce package | |
- name: Upload VSIX artifact | |
uses: actions/upload-artifact@v3 | |
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: Trigger Sentry Release | |
uses: ./.github/workflows/sentry-release.yml | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |