Lower VS Code engine requirement to 1.95.0 for broader compatibility #2
Workflow file for this run
This file contains hidden or 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 and Release Extension | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build extension | |
| run: npm run compile | |
| - name: Package extension | |
| run: npx @vscode/vsce package --no-dependencies | |
| - name: Get version from tag | |
| id: get_version | |
| run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: vertex-devcode-*.vsix | |
| body: | | |
| ## Vertex DevCode ${{ github.ref_name }} | |
| ### Installation | |
| Download `vertex-devcode-${{ steps.get_version.outputs.VERSION }}.vsix` and install: | |
| ```bash | |
| code --install-extension vertex-devcode-${{ steps.get_version.outputs.VERSION }}.vsix | |
| ``` | |
| ### Changes | |
| See commit history for details. | |
| draft: false | |
| prerelease: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} |