Skip to content

Commit 0185b5a

Browse files
Aiinfo diffcache (#111)
* add changelog to output * add clearCache utility * update cache * add writeChangelog util * ignore package.json in biome lint * @instructure.ai/aiinfo@1.1.2 * fix lint issues * @instructure.ai/aiinfo@1.2.0 * use vite-node/loader * aiinfo@1.2.1 * use loader as an export * aiinfo@1.2.2 * use custom loader * aiinfo@1.2.3 * quote loader * use correct path * aiinfo@1.2.4 * proper quotes * use nextLoad * use register instead of experimentalLoader * --no-git-checks b/c we're building here! * aiinfo@1.2.5 * aiinfo@1.2.6 * proper quoting * aiinfo@1.2.7 * async import * aiinfo@1.2.8 * move register to loader script * aiinfo@1.2.9 * Update scripts/loader.mjs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * proper release folder * aiinfo@1.2.10 * use dirname for loader * ci=1 for current caches --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a18cbb1 commit 0185b5a

2 files changed

Lines changed: 18 additions & 14 deletions

File tree

.github/workflows/release-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
echo "Skipping build for @instructure.ai/shared-configs."
6666
else
6767
echo "Building package: $PKG_NAME"
68-
pnpm build package "$PKG_NAME"
68+
CI=1 pnpm build package "$PKG_NAME"
6969
fi
7070
7171
# Test

packages/aiinfo/scripts/updateCache.mts

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -202,17 +202,21 @@ const main = async () => {
202202
export { main, main as UpdateCache, parseCSV };
203203

204204
if (process.env.UPDATE) {
205-
main()
206-
.then((cacheUpdated) => {
207-
console.log(JSON.stringify({ cacheUpdated }));
208-
if (cacheUpdated) {
209-
process.exit(0);
210-
} else {
211-
process.exit(1);
212-
}
213-
})
214-
.catch((error) => {
215-
Log({ color: "redBright", message: ["Error updating cache:", error] });
216-
process.exit(2);
217-
});
205+
main()
206+
.then((cacheUpdated) => {
207+
console.log(JSON.stringify({ cacheUpdated }));
208+
if (cacheUpdated) {
209+
process.exit(0);
210+
} else {
211+
if (process.env.CI) {
212+
process.exit(0);
213+
} else {
214+
process.exit(1);
215+
}
216+
}
217+
})
218+
.catch((error) => {
219+
Log({ color: "redBright", message: ["Error updating cache:", error] });
220+
process.exit(2);
221+
});
218222
}

0 commit comments

Comments
 (0)