ci: add workflow to build installable VSIX from feature branches #1
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 VSIX | |
| on: | |
| push: | |
| branches-ignore: | |
| - main | |
| jobs: | |
| build-vsix: | |
| name: Build installable VSIX | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run linting | |
| run: npm run lint | |
| - name: Package extension | |
| run: npx vsce package --no-dependencies -o cloudinary-${{ github.ref_name }}.vsix | |
| - name: Upload VSIX artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: cloudinary-${{ github.ref_name }} | |
| path: cloudinary-${{ github.ref_name }}.vsix | |
| retention-days: 14 |