feat: add JSON validation step before publishing to VS Marketplace #5
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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate snippets JSON | |
| run: node -e "JSON.parse(require('fs').readFileSync('snippets/snippets.json'))" | |
| - name: Check extension can be packaged | |
| run: npx @vscode/vsce ls |