This repository was archived by the owner on Jul 21, 2026. It is now read-only.
new version #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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| package-and-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run lint | |
| - name: Test | |
| run: npm run test:coverage | |
| - name: Package VS Code extension | |
| run: | | |
| VERSION=$(node -p "require('./package.json').version") | |
| VSIX_NAME="vscode-proto3-${VERSION}.vsix" | |
| npm run package:vsix | |
| echo "VSIX_NAME=$VSIX_NAME" >> "$GITHUB_ENV" | |
| - name: Upload VSIX artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.VSIX_NAME }} | |
| path: ${{ env.VSIX_NAME }} | |
| - name: Create GitHub release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: ${{ env.VSIX_NAME }} | |
| generate_release_notes: true |