Skip to content

Commit 39c048f

Browse files
committed
Add the functionality to set the checkout-reference
1 parent deb991b commit 39c048f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

publish-extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const { createVSIX } = require('vsce');
3838
options = { extensionFile: context.file };
3939
} else if (context.repo && context.ref) {
4040
console.log(`${id}: preparing from ${context.repo}...`);
41-
await exec(`git checkout ${context.ref}`, { cwd: context.repo });
41+
await exec(`git checkout ${extension.checkout || context.ref}`, { cwd: context.repo });
4242
let yarn = await new Promise(resolve => {
4343
fs.access(path.join(context.repo, 'yarn.lock'), error => resolve(!error));
4444
});

types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export interface Extensions {
5555
export interface Extension {
5656
id: string,
5757
repository?: string
58+
checkout?: string
5859
location?: string
5960
prepublish?: string
6061
extensionFile?: string

0 commit comments

Comments
 (0)