Skip to content

Commit 58585e1

Browse files
committed
refactor(dist): avoid using wildcard path for npm/ovsx/vsce publish
For some commands in release.go, print the expected path rather than relying on the shell to expand a glob. This will make future changes easier.
1 parent 2ef4ad3 commit 58585e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dist/release.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ var Steps []Step = []Step{
239239
Title: "Publish the Visual Studio Code extension to the Marketplace",
240240
Run: func() {
241241
fmt.Printf("With the `vscode/quick-lint-js-*.vsix` artifact:\n")
242-
fmt.Printf("$ npx vsce publish --packagePath signed-builds/vscode/quick-lint-js-*.vsix\n")
242+
fmt.Printf("$ npx vsce publish --packagePath signed-builds/vscode/quick-lint-js-%s.vsix\n", ReleaseVersion)
243243
WaitForDone()
244244
},
245245
},
@@ -248,7 +248,7 @@ var Steps []Step = []Step{
248248
Title: "Publish the Visual Studio Code extension to the Open VSX Registry",
249249
Run: func() {
250250
fmt.Printf("With the `vscode/quick-lint-js-*.vsix` artifact:\n")
251-
fmt.Printf("$ npx ovsx publish signed-builds/vscode/quick-lint-js-*.vsix --pat YOUR_ACCESS_TOKEN\n")
251+
fmt.Printf("$ npx ovsx publish signed-builds/vscode/quick-lint-js-%s.vsix --pat YOUR_ACCESS_TOKEN\n", ReleaseVersion)
252252
WaitForDone()
253253
},
254254
},
@@ -257,7 +257,7 @@ var Steps []Step = []Step{
257257
Title: "Publish to npm",
258258
Run: func() {
259259
fmt.Printf("With the `npm/quick-lint-js-*.tgz` artifact:\n")
260-
fmt.Printf("$ npm publish signed-builds/npm/quick-lint-js-*.tgz\n")
260+
fmt.Printf("$ npm publish signed-builds/npm/quick-lint-js-%s.tgz\n", ReleaseVersion)
261261
WaitForDone()
262262
},
263263
},

0 commit comments

Comments
 (0)