Skip to content

Commit 5639b05

Browse files
committed
ci: build example apps if they've been modified
1 parent 8c187f3 commit 5639b05

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
- packages/app/scripts/init.mjs
6565
- packages/app/scripts/template.mjs
6666
- packages/app/scripts/build/xcodebuild.sh
67+
- packages/example-macos/**/*
6768
"platform: visionOS":
6869
- changed-files:
6970
- any-glob-to-any-file:
@@ -103,3 +104,4 @@
103104
- packages/app/scripts/init.mjs
104105
- packages/app/scripts/template.mjs
105106
- packages/app/windows/**/*
107+
- packages/example-windows/**/*

.yarn/plugins/undo-bin-sorting.cjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = {
2424
// @ts-expect-error Yarn internal package
2525
const { npath } = require("@yarnpkg/fslib");
2626
const fs = require("node:fs");
27+
const { EOL } = require("node:os");
2728

2829
const asText = /** @type {const} */ ({ encoding: "utf-8" });
2930

@@ -67,10 +68,9 @@ module.exports = {
6768
for (let i = 0; i < length; ++i) {
6869
if (bin[i] !== orig_bin[i]) {
6970
manifest.bin = orig_manifest.bin;
70-
const fd = fs.openSync(manifestPath, "w", 0o644);
71-
fs.writeSync(fd, JSON.stringify(manifest, undefined, 2));
72-
fs.writeSync(fd, "\n");
73-
fs.closeSync(fd);
71+
const serialized = JSON.stringify(manifest, undefined, 2);
72+
const reverted = serialized.replace(/\r?\n/g, EOL) + EOL;
73+
fs.writeFileSync(manifestPath, reverted, asText);
7474
break;
7575
}
7676
}

0 commit comments

Comments
 (0)