From 416b4ec084c2fb8f60f37a7de61fcd179a9d9b83 Mon Sep 17 00:00:00 2001 From: Josh Mu Date: Sun, 31 Mar 2024 15:25:23 +1000 Subject: [PATCH] feat: pipeline publish integration --- .../workflows/publish-vscode-extension.yml | 32 +++++++++++++++++++ README.md | 2 +- package.json | 3 ++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish-vscode-extension.yml 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"] } }