@nimiplatform/app-tools 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
It does not own GitHub publisher or repository truth, registry review/main, Runtime installed state, Desktop process state, or Nimi Access. Nimi Account and the private Nimi backend are not publisher credentials or App-release infrastructure.
|
|
6
6
|
|
|
7
|
+
For your first public release, start with [Publishing on GitHub](#publishing-on-github), including the read-only repository-settings credential.
|
|
8
|
+
|
|
7
9
|
## AI development and existing projects
|
|
8
10
|
|
|
9
11
|
The package includes one `skills/nimi-app-lifecycle/SKILL.md` with on-demand
|
|
@@ -200,10 +202,24 @@ Registry projects must be open source with an explicit license and reviewable re
|
|
|
200
202
|
|
|
201
203
|
## Publishing on GitHub
|
|
202
204
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
Before the first release, configure `NIMI_REPOSITORY_ADMIN_TOKEN` as an Actions
|
|
206
|
+
secret in the App repository. It needs only **Administration: Read-only**, to
|
|
207
|
+
check tag protection and Release immutability. Local App development does not
|
|
208
|
+
need this credential.
|
|
209
|
+
|
|
210
|
+
The built-in `GITHUB_TOKEN` has no Administration permission for the
|
|
211
|
+
[repository immutability-settings API](https://docs.github.com/en/rest/repos/repos#check-if-immutable-releases-are-enabled-for-a-repository).
|
|
212
|
+
That is why the current release preflight needs a separate credential. Actual
|
|
213
|
+
Release uploads use GitHub's built-in token, and build attestations use OIDC.
|
|
214
|
+
This secret is neither a Nimi login token nor Registry approval, and needs no
|
|
215
|
+
repository write permission.
|
|
216
|
+
|
|
217
|
+
Repository secrets are scoped to their repository: configuring another App,
|
|
218
|
+
even under the same organization, does not configure this one. If you do not
|
|
219
|
+
administer the repository, ask its maintainer to complete the setup below.
|
|
220
|
+
|
|
221
|
+
`nimi-app check --production` checks local inputs; it does not inspect remote
|
|
222
|
+
settings or secrets. Complete the following setup before pushing a release tag.
|
|
207
223
|
|
|
208
224
|
### 1. Configure the publisher repository
|
|
209
225
|
|
package/bin/nimi-app.mjs
CHANGED
|
@@ -186,6 +186,13 @@ function printUsage() {
|
|
|
186
186
|
' nimi-app build [--dir path] [--target target-id] [--production] [--json]',
|
|
187
187
|
' nimi-app pack [--dir path] (--target target-id [--production] | --aggregate) [--json]',
|
|
188
188
|
'',
|
|
189
|
+
'Publishing on GitHub:',
|
|
190
|
+
' Before the first release, configure NIMI_REPOSITORY_ADMIN_TOKEN with Administration: Read-only.',
|
|
191
|
+
' It checks tag protection and Release immutability; uploads use the built-in GitHub token.',
|
|
192
|
+
' The built-in token lacks the Administration permission needed for this settings check.',
|
|
193
|
+
' Local development does not need this credential. Setup:',
|
|
194
|
+
' https://github.com/nimiplatform/nimi/blob/main/app-tools/README.md#publishing-on-github',
|
|
195
|
+
'',
|
|
189
196
|
'Current module registry:',
|
|
190
197
|
` Admitted features: ${featureList(admitted)}`,
|
|
191
198
|
` Candidate features (not public-selectable): ${featureList(candidates)}`,
|
|
@@ -390,7 +397,8 @@ try {
|
|
|
390
397
|
json,
|
|
391
398
|
});
|
|
392
399
|
if (production && !json) {
|
|
393
|
-
process.stdout.write('[nimi-app] Local checks do not verify GitHub repository settings or secrets. Before tagging, configure NIMI_REPOSITORY_ADMIN_TOKEN and
|
|
400
|
+
process.stdout.write('[nimi-app] Local checks do not verify GitHub repository settings or secrets. Before tagging, configure NIMI_REPOSITORY_ADMIN_TOKEN (Administration: Read-only) to check tag protection and Release immutability:\n');
|
|
401
|
+
process.stdout.write('[nimi-app] Release uploads use the built-in GitHub token; it lacks the Administration permission needed for this settings check.\n');
|
|
394
402
|
process.stdout.write('https://github.com/nimiplatform/nimi/blob/main/app-tools/README.md#publishing-on-github\n');
|
|
395
403
|
}
|
|
396
404
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nimiplatform/app-tools",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Public app-authoring CLI for Nimi App projects.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"nimiScaffoldVersions": {
|
|
21
21
|
"sdkVersion": "^0.12.0",
|
|
22
|
-
"appToolsVersion": "^0.5.
|
|
22
|
+
"appToolsVersion": "^0.5.3",
|
|
23
23
|
"nimicodingVersion": "0.6.3",
|
|
24
24
|
"aiSdkVersion": "^6.0.85",
|
|
25
25
|
"kitVersion": "^0.8.0",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Before production, use public dependencies and frozen locks, complete portable App information and existing notices, and build/pack on the declared OS/architecture. Reuse `nimi-app check --production`, `test`, `build --target <target> --production`, and `pack --target <target> --production`. Local check does not establish GitHub settings or a release.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Follow the [publisher setup guide](https://github.com/nimiplatform/nimi/blob/main/app-tools/README.md#publishing-on-github) before the first tag. Its `NIMI_REPOSITORY_ADMIN_TOKEN` needs only **Administration: Read-only** to check tag protection and Release immutability; actual Release uploads use GitHub's built-in token, which lacks that administration permission. A secret configured in another App repository is not inherited. Check real settings when publication is in scope. Keep App package/manifest versions equal and the annotated `v<version>` tag on a commit in the actual canonical default-branch history. Publish only with the user's existing authorization; fixing a local check does not authorize a new release.
|
|
6
6
|
|
|
7
7
|
The managed tag workflow owns production tests, target artifacts, attestations and immutable Release execution. Manual dispatch is a development build. Reuse its final Release/asset verification; a code change needs a new version, not a moved tag. Do not add local publish or another App production workflow.
|
|
8
8
|
|
|
@@ -38,6 +38,11 @@ Runtime, Realm, registry admission, installed state and process truth remain wit
|
|
|
38
38
|
|
|
39
39
|
## Publish with GitHub
|
|
40
40
|
|
|
41
|
+
`NIMI_REPOSITORY_ADMIN_TOKEN` is only for reading tag-protection and Release
|
|
42
|
+
immutability settings, with **Administration: Read-only** permission. The
|
|
43
|
+
built-in GitHub token cannot read the Release immutability setting; it handles the
|
|
44
|
+
actual Release upload. Local development does not need the extra token.
|
|
45
|
+
|
|
41
46
|
Before pushing a release tag, complete these one-time repository steps:
|
|
42
47
|
|
|
43
48
|
1. **Settings → General → Releases:** enable Release immutability.
|