Clean up README and CHANGELOG for marketplace listing #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: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| if: "!startsWith(github.event.head_commit.message, 'Release')" | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| node-version: [18, 20, 22] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Security audit | |
| run: npm audit --audit-level=moderate | |
| continue-on-error: true | |
| - name: Type check | |
| run: npm run lint | |
| - name: Run tests | |
| run: npm test | |
| - name: Build extension | |
| run: npm run build | |
| - name: Package VSIX | |
| if: matrix.os == 'ubuntu-latest' && matrix.node-version == 22 | |
| run: npx vsce package --no-dependencies | |
| - name: Upload VSIX artifact | |
| if: matrix.os == 'ubuntu-latest' && matrix.node-version == 22 | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: graphql-clnt-vsix | |
| path: "*.vsix" | |
| publish: | |
| needs: build | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Use Node.js 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Bump patch version | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| npm version patch -m "Release %s" | |
| git push | |
| git push --tags | |
| - name: Publish to VS Code Marketplace | |
| run: npx vsce publish --no-dependencies -p ${{ secrets.VSCE_PAT }} |