Skip to content

Commit 2fc1bd1

Browse files
authored
ci: another round of publishing fixes (#4029)
* delete private packages from getting bumped * Update lint-package to fix private versions * update-profile is single quotes, and convert to typescript * convert another zx script to node + zx import * `yarn format * add to ignore * fix validate script * back to double quotes
1 parent 206ed6e commit 2fc1bd1

File tree

15 files changed

+1029
-1061
lines changed

15 files changed

+1029
-1061
lines changed

.changeset/heavy-regions-shake.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
'@fluentui-react-native/persona-coin': patch
2323
'@fluentui-react-native/menu-button': patch
2424
'@fluentui-react-native/radio-group': patch
25-
'@fluentui-react-native/react-configs': patch
2625
'@fluentui-react-native/experimental-checkbox': patch
2726
'@fluentui-react-native/dropdown': patch
2827
'@fluentui-react-native/experimental-expander': patch
@@ -35,15 +34,13 @@
3534
'@fluentui-react-native/focus-zone': patch
3635
'@fluentui-react-native/pressable': patch
3736
'@fluentui-react-native/separator': patch
38-
'@fluentui-react-native/babel-config': patch
3937
'@fluentui-react-native/popover': patch
4038
'@fluentui-react-native/experimental-shimmer': patch
4139
'@fluentui-react-native/spinner': patch
4240
'@fluentui-react-native/tooltip': patch
4341
'@fluentui-react-native/use-tokens': patch
4442
'@fluentui-react-native/theme-tokens': patch
4543
'@fluentui-react-native/checkbox': patch
46-
'@fluentui-react-native/jest-config': patch
4744
'@fluentui-react-native/experimental-avatar': patch
4845
'@fluentui-react-native/drawer': patch
4946
'@fluentui-react-native/experimental-shadow': patch
@@ -56,8 +53,6 @@
5653
'@fluentui-react-native/divider': patch
5754
'@fluentui-react-native/persona': patch
5855
'@fluentui-react-native/tablist': patch
59-
'@fluentui-react-native/kit-config': patch
60-
'@fluentui-react-native/experimental-stack': patch
6156
'@fluentui-react-native/use-slot': patch
6257
'@fluentui-react-native/avatar': patch
6358
'@fluentui-react-native/button': patch
@@ -77,7 +72,6 @@
7772
'@fluentui-react-native/styling-utils': patch
7873
'@fluentui-react-native/tokens': patch
7974
'@fluentui-react-native/codemods': patch
80-
'@fluentui-react-native/scripts': patch
8175
---
8276

8377
chore: migrate to `oxfmt`

.changeset/long-ideas-flow.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
'@fluentui-react-native/use-tokens': patch
4242
'@fluentui-react-native/theme-tokens': patch
4343
'@fluentui-react-native/checkbox': patch
44-
'@fluentui-react-native/jest-config': patch
4544
'@fluentui-react-native/experimental-avatar': patch
4645
'@fluentui-react-native/drawer': patch
4746
'@fluentui-react-native/experimental-shadow': patch
@@ -54,8 +53,6 @@
5453
'@fluentui-react-native/divider': patch
5554
'@fluentui-react-native/persona': patch
5655
'@fluentui-react-native/tablist': patch
57-
'@fluentui-react-native/kit-config': patch
58-
'@fluentui-react-native/experimental-stack': patch
5956
'@fluentui-react-native/use-slot': patch
6057
'@fluentui-react-native/avatar': patch
6158
'@fluentui-react-native/button': patch
@@ -75,7 +72,6 @@
7572
'@fluentui-react-native/styling-utils': patch
7673
'@fluentui-react-native/tokens': patch
7774
'@fluentui-react-native/codemods': patch
78-
'@fluentui-react-native/scripts': patch
7975
---
8076

8177
Ensure packages have a default export that references the typescript entrypoint and clean up build dependency ordering

.github/scripts/changeset-version-with-postbump.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#!/usr/bin/env zx
2-
import 'zx/globals';
1+
#!/usr/bin/env node
2+
import { $, cd, echo, fs } from 'zx';
33

44
/**
55
* Changeset version bump with post-bump hook

.github/scripts/validate-changesets.mts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import { $, echo, fs } from 'zx';
1010
* Private/ignored packages (per .changeset/config.json) are excluded automatically.
1111
*/
1212

13-
const tmpDir = fs.mkdtempSync('/tmp/changeset-status-');
14-
const STATUS_FILE = `${tmpDir}/status.json`;
13+
const STATUS_FILE = 'changeset-status.json';
1514

1615
const log = {
1716
error: (msg: string) => echo(styleText('red', msg)),
@@ -41,7 +40,7 @@ fs.writeJsonSync(STATUS_FILE, { releases: [], changesets: [] });
4140
await $`yarn changeset status --since=origin/main --output ${STATUS_FILE}`.nothrow();
4241

4342
const data: ChangesetStatusOutput = fs.readJsonSync(STATUS_FILE);
44-
fs.removeSync(tmpDir);
43+
fs.removeSync(STATUS_FILE);
4544

4645
// Fail: major version bumps
4746
const majorBumps = data.releases.filter((release) => release.type === 'major');

.oxfmtrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"**/dist/**",
1212
"**/CHANGELOG.*",
1313
"**/CODE_OF_CONDUCT.md",
14-
"**/SECURITY.md"
14+
"**/SECURITY.md",
15+
"packages/dependency-profiles/src/index.js"
1516
]
1617
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"bundle": "lage bundle",
2222
"clean": "lage clean",
2323
"change": "changeset",
24-
"changeset:version": "zx .github/scripts/changeset-version-with-postbump.mts",
25-
"changeset:validate": "zx .github/scripts/validate-changesets.mts",
24+
"changeset:version": "node .github/scripts/changeset-version-with-postbump.mts",
25+
"changeset:validate": "node .github/scripts/validate-changesets.mts",
2626
"check-publishing": "node ./scripts/src/cli.mjs check-publishing",
2727
"lint": "lage lint",
2828
"lint-fix": "cross-env FURN_FIX_MODE=true lage lint",

packages/configs/jest-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fluentui-react-native/jest-config",
3-
"version": "0.1.1",
3+
"version": "0.1.0",
44
"private": true,
55
"description": "Jest configuration for UI Fabric React Native",
66
"license": "MIT",

packages/dependency-profiles/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"main": "src/index.js",
1515
"scripts": {
1616
"build": "fluentui-scripts build",
17-
"update-profile": "node update-profile.mjs"
17+
"update-profile": "node update-profile.mts"
1818
},
1919
"devDependencies": {
2020
"@fluentui-react-native/adapters": "*",

0 commit comments

Comments
 (0)