File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,14 @@ jobs:
49
49
50
50
const packageJSONPath = './npmDist/package.json';
51
51
const packageJSON = JSON.parse(fs.readFileSync(packageJSONPath, 'utf-8'));
52
- const { sha, pull_request } = JSON.parse(fs.readFileSync('./event.json', 'utf-8'));
52
+ const { pull_request } = JSON.parse(fs.readFileSync('./event.json', 'utf-8'));
53
53
54
54
// Override entire 'publishConfig' since it can contain untrusted data.
55
55
packageJSON.publishConfig = { tag: `canary-pr-${pull_request.number}` };
56
56
57
57
assert(!packageJSON.version.includes('+'), 'Can not append after metadata');
58
58
packageJSON.version += packageJSON.version.includes('-') ? '.' : '-';
59
- packageJSON.version += `canary.pr.${pull_request.number}.${sha}`;
59
+ packageJSON.version += `canary.pr.${pull_request.number}.${pull_request.head. sha}`;
60
60
61
61
assert(
62
62
packageJSON.scripts == null,
You can’t perform that action at this time.
0 commit comments