0.1.1 #7
Workflow file for this run
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 extension | |
on: | |
release: | |
types: [published] | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm ci | |
- name: Create Docker image for json schema generation | |
run: make build | |
- name: Generate json schema | |
run: make run | |
- name: Build extension | |
run: npm run build | |
env: | |
SENTRY_DSN: ${{ vars.SENTRY_DSN }} | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
- name: Install vsce | |
run: npm install -g @vscode/vsce | |
- name: Publish extension | |
run: vsce publish --no-update-package-json "$VSCE_VERSION" | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
VSCE_VERSION: ${{ github.event.release.tag_name }} |