publish #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: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| - run: npm ci | |
| - name: config git | |
| run: | | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --global user.name "github-actions[bot]" | |
| - run: npm version patch -m "%s [skip ci]" | |
| - run: npx @vscode/vsce package | |
| - run: find . -name "*.vsix" | xargs npx @vscode/vsce publish -i | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
| - run: git push origin HEAD:main |