Skip to content

Merge pull request #24 from joshmu/fix_ripgrep-compatibility #16

Merge pull request #24 from joshmu/fix_ripgrep-compatibility

Merge pull request #24 from joshmu/fix_ripgrep-compatibility #16

name: Publish VSCode Extension
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- name: Remove ripgrep bin folder, to allow consumers to redefine their OS specific binaries
run: rm -rf ./node_modules/@vscode/ripgrep/bin
- name: Semantic Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Add any other tokens or configuration required by semantic-release plugins
- name: Install Visual Studio Marketplace CLI
run: npm install -g vsce
- name: Package & Publish Extension to Visual Studio Marketplace
run: vsce publish --pat ${{ secrets.VS_MARKETPLACE_TOKEN }}
- name: Install Open VSX CLI
run: npm install -g ovsx
- name: Package & Publish Extension to Open VSX Registry
run: ovsx publish --pat ${{ secrets.OPEN_VSX_TOKEN }}