v0.9.0 #19
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: VS Code Extension | |
| on: | |
| push: | |
| branches: [main] | |
| paths: ['packages/vscode-extension/**'] | |
| release: | |
| types: [published] | |
| defaults: | |
| run: | |
| working-directory: packages/vscode-extension | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: packages/vscode-extension/package-lock.json | |
| - run: npm ci | |
| - run: npm run compile | |
| - name: Package .vsix | |
| run: mkdir -p build && npx @vscode/vsce package --out build/ | |
| - name: Upload .vsix artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: chalk-skills-vsix | |
| path: packages/vscode-extension/build/*.vsix | |
| publish: | |
| if: github.event_name == 'release' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: packages/vscode-extension/package-lock.json | |
| - run: npm ci | |
| - name: Publish to VS Code Marketplace | |
| run: npx @vscode/vsce publish | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
| continue-on-error: true | |
| - name: Publish to Open VSX | |
| run: npx ovsx publish --pat ${{ secrets.OVSX_PAT }} | |
| env: | |
| OVSX_PAT: ${{ secrets.OVSX_PAT }} | |
| continue-on-error: true |