Skip to content

Commit 2b7d35e

Browse files
committed
fix: build
1 parent 254bcd7 commit 2b7d35e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Release
22

33
on:
4-
# schedule:
5-
# - cron: "*/30 * * * *"
4+
schedule:
5+
- cron: "*/30 * * * *"
66
push:
77
branches:
8-
- master-null
8+
- master
99

1010
jobs:
1111
release:

scripts/release.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,13 @@ void (async () => {
5151
const zip = new AdmZip(currentVsixPath);
5252
const zipEntries = zip.getEntries();
5353
const entry = zipEntries.find(
54-
o =>
55-
o.entryName === `extension/node_modules/phpfmt/v2/${phpfmt.v2.pharName}`
54+
o => o.entryName === `extension/dist/${phpfmt.v2.pharName}`
5655
);
56+
57+
if (entry == null) {
58+
throw new Error("Can't find phar in vsix");
59+
}
60+
5761
const currentPharData = String(entry?.getData());
5862
const currentMd5 = md5(currentPharData);
5963
console.log(`Current md5: ${currentMd5}`);

0 commit comments

Comments
 (0)