Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
kokororin committed Apr 25, 2024
1 parent 254bcd7 commit 2b7d35e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Release

on:
# schedule:
# - cron: "*/30 * * * *"
schedule:
- cron: "*/30 * * * *"
push:
branches:
- master-null
- master

jobs:
release:
Expand Down
8 changes: 6 additions & 2 deletions scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@ void (async () => {
const zip = new AdmZip(currentVsixPath);
const zipEntries = zip.getEntries();
const entry = zipEntries.find(
o =>
o.entryName === `extension/node_modules/phpfmt/v2/${phpfmt.v2.pharName}`
o => o.entryName === `extension/dist/${phpfmt.v2.pharName}`
);

if (entry == null) {
throw new Error("Can't find phar in vsix");
}

const currentPharData = String(entry?.getData());
const currentMd5 = md5(currentPharData);
console.log(`Current md5: ${currentMd5}`);
Expand Down

0 comments on commit 2b7d35e

Please sign in to comment.