diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5628df9..84422c5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -87,15 +87,13 @@ jobs: name: build-artifact path: dist - name: Publish to Open VSX Registry - uses: HaaLeo/publish-vscode-extension@v0 + uses: HaaLeo/publish-vscode-extension@v1 with: pat: ${{ secrets.VSX_REGISTRY_TOKEN }} extensionFile: ./dist/extension.vsix - packagePath: "" - name: Publish to VS Marketplace - uses: HaaLeo/publish-vscode-extension@v0 + uses: HaaLeo/publish-vscode-extension@v1 with: pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} registryUrl: https://marketplace.visualstudio.com extensionFile: ./dist/extension.vsix - packagePath: "" diff --git a/src/project/project_type.ts b/src/project/project_type.ts index 3234e86..41b48d2 100644 --- a/src/project/project_type.ts +++ b/src/project/project_type.ts @@ -99,13 +99,12 @@ export class VSCodeExtensionProject extends TypeScriptAppProject { if (options.publishToOpenVSXRegistry) { steps.push({ name: "Publish to Open VSX Registry", - uses: "HaaLeo/publish-vscode-extension@v0", + uses: "HaaLeo/publish-vscode-extension@v1", with: { pat: `\${{ secrets.${ options.vsxRegistryToken ?? "VSX_REGISTRY_TOKEN" } }}`, extensionFile: "./dist/extension.vsix", - packagePath: "", }, }); } @@ -113,14 +112,13 @@ export class VSCodeExtensionProject extends TypeScriptAppProject { if (options.publishToVSMarketplace) { steps.push({ name: "Publish to VS Marketplace", - uses: "HaaLeo/publish-vscode-extension@v0", + uses: "HaaLeo/publish-vscode-extension@v1", with: { pat: `\${{ secrets.${ options.vsMarketplaceToken ?? "VS_MARKETPLACE_TOKEN" } }}`, registryUrl: "https://marketplace.visualstudio.com", extensionFile: "./dist/extension.vsix", - packagePath: "", }, }); }