diff --git a/.github/workflows/publish-vscode-extension.yml b/.github/workflows/publish-vscode-extension.yml new file mode 100644 index 0000000..80f46ab --- /dev/null +++ b/.github/workflows/publish-vscode-extension.yml @@ -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 }} diff --git a/README.md b/README.md index e18b2c9..e28684a 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ _Inspired by nvim's [telescope](https://github.com/nvim-telescope/telescope.nvim ## Instructions -1. Ideally assign a keybinding such as ` + p` to invoke the `periscope.search` command. Otherwise you can use the command prompt and search for **periscope**. +1. Assign a keybinding such as ` + 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 diff --git a/package.json b/package.json index 0c9a068..51651d3 100644 --- a/package.json +++ b/package.json @@ -200,5 +200,8 @@ "license": "SEE LICENSE IN LICENSE.txt", "dependencies": { "vscode-ripgrep": "^1.13.2" + }, + "release": { + "branches": ["master"] } }