Skip to content

Commit

Permalink
chore: update publish-vscode-extension to v1
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMcCulloh committed May 29, 2024
1 parent fc6d79e commit 561f03d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/project/project_type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,28 +99,26 @@ 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: "",
},
});
}

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: "",
},
});
}
Expand Down

0 comments on commit 561f03d

Please sign in to comment.