Skip to content

Commit

Permalink
feat: pipeline publish integration
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmu committed Mar 31, 2024
1 parent 5694dc5 commit 416b4ec
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/publish-vscode-extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish VSCode Extension

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- 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: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
id: publishToOpenVSX
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _Inspired by nvim's [telescope](https://github.com/nvim-telescope/telescope.nvim

## Instructions

1. Ideally assign a keybinding such as `<super> + p` to invoke the `periscope.search` command. Otherwise you can use the command prompt and search for **periscope**.
1. Assign a keybinding such as `<super> + p` to invoke the `periscope.search` command. Otherwise you can use the command prompt and search for **periscope**.
2. Input your query and move through the suggested results, the editor will reflect the current highlighted suggested item.
3. Hit enter to open the file or cancel to return to your original active editor

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,5 +200,8 @@
"license": "SEE LICENSE IN LICENSE.txt",
"dependencies": {
"vscode-ripgrep": "^1.13.2"
},
"release": {
"branches": ["master"]
}
}

0 comments on commit 416b4ec

Please sign in to comment.