From c0f120ae30919e1eab146d3a848f1581ba537796 Mon Sep 17 00:00:00 2001 From: Volodymyr Vreshch Date: Tue, 11 Aug 2026 01:42:50 +0200 Subject: [PATCH 1/2] ci: rename publish.yml -> release.yml --- .github/workflows/release.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..5266201 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: Publish + +on: + push: + tags: + - 'v*' + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + - run: npm ci + - run: npm run check-types + - run: npm test + - name: Assert tag matches package.json version + run: test "v$(node -p "require('./package.json').version")" = "${GITHUB_REF_NAME}" + - name: Publish to Open VSX (also produces the .vsix) + id: ovsx + uses: HaaLeo/publish-vscode-extension@v2 + with: + pat: ${{ secrets.OPEN_VSX_TOKEN }} + - name: Publish to VS Code Marketplace (reuse the same .vsix) + uses: HaaLeo/publish-vscode-extension@v2 + with: + pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} + registryUrl: https://marketplace.visualstudio.com + extensionFile: ${{ steps.ovsx.outputs.vsixPath }} + - name: Create GitHub release + env: + GH_TOKEN: ${{ github.token }} + run: gh release create "${GITHUB_REF_NAME}" --generate-notes "${{ steps.ovsx.outputs.vsixPath }}" From 85525e1520bcc8740724614edad9fcdf177acd30 Mon Sep 17 00:00:00 2001 From: Volodymyr Vreshch Date: Tue, 11 Aug 2026 01:42:51 +0200 Subject: [PATCH 2/2] ci: drop publish.yml (renamed) --- .github/workflows/publish.yml | 37 ----------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 5266201..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Publish - -on: - push: - tags: - - 'v*' - -jobs: - publish: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - - run: npm ci - - run: npm run check-types - - run: npm test - - name: Assert tag matches package.json version - run: test "v$(node -p "require('./package.json').version")" = "${GITHUB_REF_NAME}" - - name: Publish to Open VSX (also produces the .vsix) - id: ovsx - uses: HaaLeo/publish-vscode-extension@v2 - with: - pat: ${{ secrets.OPEN_VSX_TOKEN }} - - name: Publish to VS Code Marketplace (reuse the same .vsix) - uses: HaaLeo/publish-vscode-extension@v2 - with: - pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} - registryUrl: https://marketplace.visualstudio.com - extensionFile: ${{ steps.ovsx.outputs.vsixPath }} - - name: Create GitHub release - env: - GH_TOKEN: ${{ github.token }} - run: gh release create "${GITHUB_REF_NAME}" --generate-notes "${{ steps.ovsx.outputs.vsixPath }}"