chore: bump version #31
Workflow file for this run
This file contains 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 | |
permissions: | |
contents: write | |
on: | |
push: | |
tags: | |
- '[0-9]+.*' | |
jobs: | |
release-extension: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
- name: Install deps | |
run: npm install | |
- name: Install vsce | |
run: npm install vsce -g | |
- name: Compile | |
run: npm run compile | |
- name: Package VSCE | |
run: vsce package -o ast-grep-vscode.vsix | |
- name: Create GH Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: ast-grep-vscode.vsix | |
- name: Publish extension | |
run: vsce publish -p ${{ secrets.VSCE_TOKEN }} | |
release-open-vsx: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm install | |
- name: Install ovsx (Open VSX CLI) | |
run: npm install -g ovsx | |
- name: Publish to Open VSX | |
run: | | |
npx ovsx publish -p ${{ secrets.OVSX_TOKEN }} |