chore: release v0.2.2 #66
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: Publish Extension | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js 20 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build webview helpers | |
| run: npm run build:media | |
| - name: Build | |
| run: npm run compile | |
| - name: Package VSIX | |
| run: | | |
| VERSION=$(node -p "require('./package.json').version") | |
| npm run build:nls | |
| npx vsce package --no-rewrite-relative-links | |
| mkdir -p vsix | |
| mv commit-maker-${VERSION}.vsix vsix/ | |
| npm run clean:nls | |
| - name: Publish to VS Marketplace (best effort) | |
| continue-on-error: true | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
| run: | | |
| VERSION=$(node -p "require('./package.json').version") | |
| npx vsce publish --packagePath vsix/commit-maker-${VERSION}.vsix | |
| - name: Ensure Open VSX namespace | |
| if: always() | |
| env: | |
| OVSX_PAT: ${{ secrets.OVSX_PAT }} | |
| run: | | |
| npx ovsx create-namespace Hiromitsu || true | |
| - name: Publish to Open VSX | |
| if: always() | |
| env: | |
| OVSX_PAT: ${{ secrets.OVSX_PAT }} | |
| run: | | |
| VERSION=$(node -p "require('./package.json').version") | |
| npx ovsx publish vsix/commit-maker-${VERSION}.vsix --skip-duplicate | |
| - name: Clean stray VSIX and enforce limit (keep latest 5) | |
| if: always() | |
| run: npm run clean:vsix |