Build extension on release #11
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: Build extension on release | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout code" | |
uses: actions/checkout@v4 | |
- name: "Set up Node.js" | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "20" | |
- name: "Install dependencies" | |
run: npm install | |
- name: "Build extension" | |
run: npm run package | |
- name: upload vsix | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: labs-ai-tools-vscode-${{ github.event.release.tag_name }}.vsix | |
asset_name: VSIX File | |
asset_content_type: application/vsix |