Skip to content

Commit 2a40d0f

Browse files
authored
set publishConfig to publishable packages (#2920)
### Fixes # <!-- Mention the issues this PR addresses --> ### Checks - [ ] Ran `yarn test-build` - [ ] Updated relevant documentations - [ ] Updated matching config options in altair-static ### Changes proposed in this pull request: <!-- Describe the changes being introduced in this PR --> ## Summary by Sourcery Configure package publishing settings and update project tooling. Enhancements: - Add publishConfig with public access and provenance to all publishable packages - Upgrade electron dependency version in pnpm workspace configuration - Introduce electron corner smoothing CSS in the Ant Design overrides CI: - Grant id-token write permission in the GitHub release workflow Chores: - Regenerate pnpm lockfile after dependency updates <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Dependencies** * Electron bumped to v38.3.0 for improved stability, performance, and security. * **Style** * Smoother corner rendering in the desktop app for a more polished appearance. * **Bug Fixes** * Adjusted document viewer navigation rendering to more reliably show back navigation when available. * **Chores** * Added publish metadata to package manifests to enable public publishing with provenance. * CI workflow permission updated to support artifact publishing. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 7ed93dd commit 2a40d0f

File tree

14 files changed

+67
-27
lines changed

14 files changed

+67
-27
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ env:
1212
NODE_VERSION: 22
1313
# NODE_OPTIONS: --openssl-legacy-provider
1414

15+
permissions:
16+
id-token: write
17+
1518
# TODO: Handle browser extension release
1619
jobs:
1720
vars:

packages/altair-app/src/app/modules/altair/components/doc-viewer/doc-viewer/doc-viewer.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<div class="doc-viewer-header">
2121
<div class="doc-viewer-navigation">
2222
<div class="doc-viewer-navigation--left">
23-
@if (docView.view !== 'root' && docHistory.length) {
23+
@if (docView.view !== 'root' && docHistory().length) {
2424
<div
2525
class="doc-viewer-navigation__option"
2626
(click)="goBack()"

packages/altair-app/src/scss/_ant-overrides.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
backdrop-filter: blur(10px);
3535
color: var(--theme-font-color);
3636
border-radius: 4px;
37+
-electron-corner-smoothing: system;
3738
}
3839

3940
.ant-modal-confirm-body .ant-modal-confirm-title,

packages/altair-core/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,9 @@
8585
"bootstrap": "pnpm build",
8686
"test": "jest"
8787
},
88-
"types": "./build/index.d.ts"
88+
"types": "./build/index.d.ts",
89+
"publishConfig": {
90+
"access": "public",
91+
"provenance": true
92+
}
8993
}

packages/altair-express-middleware/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,9 @@
4141
"prepare-dist": "node scripts/prepare_dist.js",
4242
"test": "echo \"Error: no test specified\" && exit 0"
4343
},
44-
"types": "./build/index.d.ts"
44+
"types": "./build/index.d.ts",
45+
"publishConfig": {
46+
"access": "public",
47+
"provenance": true
48+
}
4549
}

packages/altair-fastify-plugin/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,9 @@
3838
"bootstrap": "tsc",
3939
"test": "echo \"Error: no test specified\" && exit 0"
4040
},
41-
"types": "dist/index.d.ts"
41+
"types": "dist/index.d.ts",
42+
"publishConfig": {
43+
"access": "public",
44+
"provenance": true
45+
}
4246
}

packages/altair-koa-middleware/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,9 @@
4848
"bootstrap": "pnpm declarations",
4949
"test": "echo \"Error: no test specified\" && exit 0"
5050
},
51-
"types": "./build/src/index.d.ts"
51+
"types": "./build/src/index.d.ts",
52+
"publishConfig": {
53+
"access": "public",
54+
"provenance": true
55+
}
5256
}

packages/altair-plugin/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,9 @@
3232
"bootstrap": "pnpm declarations",
3333
"test": "echo \"Error: no test specified\" && exit 0"
3434
},
35-
"types": "./build/index.d.ts"
35+
"types": "./build/index.d.ts",
36+
"publishConfig": {
37+
"access": "public",
38+
"provenance": true
39+
}
3640
}

packages/altair-static/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@
4040
"test": "jest",
4141
"types": "dts-bundle-generator src/index.ts -o build/index.d.ts --external-inlines altair-graphql-core --external-inlines altair-static --verbose"
4242
},
43-
"types": "./build/index.d.ts"
43+
"types": "./build/index.d.ts",
44+
"publishConfig": {
45+
"access": "public",
46+
"provenance": true
47+
}
4448
}

packages/gatsby-plugin-altair-graphql/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,9 @@
3232
"compile": "tsc --declaration",
3333
"bootstrap": "pnpm compile",
3434
"test": "echo \"Error: no test specified\" && exit 0"
35+
},
36+
"publishConfig": {
37+
"access": "public",
38+
"provenance": true
3539
}
3640
}

0 commit comments

Comments
 (0)