Skip to content

Commit 07ea892

Browse files
committed
Support injecting PAT from an environmental variable
1 parent 4960c7c commit 07ea892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module.exports = function (argv: string[]): void {
8080
program
8181
.command('publish [<version>]')
8282
.description('Publishes an extension')
83-
.option('-p, --pat <token>', 'Personal Access Token')
83+
.option('-p, --pat <token>', 'Personal Access Token', process.env['VSCE_PAT'])
8484
.option('-m, --message <commit message>', 'Commit message used when calling `npm version`.')
8585
.option('--packagePath [path]', 'Publish the VSIX package located at the specified path.')
8686
.option('--baseContentUrl [url]', 'Prepend all relative links in README.md with this url.')

0 commit comments

Comments
 (0)