Skip to content

Commit d5e4f39

Browse files
authored
Merge pull request #3 from epubknowledge/hotfix/resolve-github-action
hotfix/resolve-github-action
2 parents 63bc398 + b63a6ae commit d5e4f39

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release-package.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
id: pack
3333
run: |
3434
npm pack --json > pack-output.json
35-
echo "filename=$(node -p 'JSON.parse(require(\"fs\").readFileSync(\"pack-output.json\", \"utf8\"))[0].filename')" >> "$GITHUB_OUTPUT"
35+
filename=$(node -e "console.log(JSON.parse(require('fs').readFileSync('pack-output.json', 'utf8'))[0].filename)")
36+
echo "filename=$filename" >> "$GITHUB_OUTPUT"
3637
- name: Verify packed dist assets
3738
run: |
3839
node -e "const pack = JSON.parse(require('fs').readFileSync('pack-output.json', 'utf8'))[0]; const files = pack.files.map(file => file.path); const hasJs = files.some(file => file.startsWith('dist/') && file.endsWith('.js')); const hasDts = files.some(file => file.startsWith('dist/') && file.endsWith('.d.ts')); if (!hasJs || !hasDts) { console.error('Packed tarball is missing compiled dist assets.'); process.exit(1); }"

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ÆÐƎƏƐƔIJŊŒẞÞǷ",
88
"behaviour",
99
"eisbn",
10+
"Epub",
1011
"epubknowledge",
1112
"Ɣáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣ",
1213
"ĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠ",

0 commit comments

Comments
 (0)