@react-consulting/rc-kit 0.13.0 → 0.13.1
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 +3 -4
- package/devkit/lib/kit-migrate.test.ts +3 -0
- package/devkit/lib/kit-migrate.ts +9 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -84,10 +84,9 @@ Le paquet `@react-consulting/rc-kit` se publie depuis `main` par `.github/workfl
|
|
|
84
84
|
|
|
85
85
|
Mise en place, une fois :
|
|
86
86
|
|
|
87
|
-
1.
|
|
88
|
-
2.
|
|
89
|
-
3.
|
|
90
|
-
4. Variable de dépôt `KIT_RELEASE_ENABLED` = `true`.
|
|
87
|
+
1. Sur npmjs.com, paquet → Settings → Trusted publishing → GitHub Actions : ce dépôt, workflow `release.yml`. Le workflow publie par OIDC (`id-token: write`), sans jeton npm dans les secrets. npm n'accepte un trusted publisher que sur un paquet qui existe : un nouveau nom se publie une première fois à la main (`npm publish` avec un compte membre de l'organisation).
|
|
88
|
+
2. Repère de version : un tag `v<version>` existe sur le commit qui porte cette version, pour que semantic-release ne reparte pas de 1.0.0.
|
|
89
|
+
3. Variable de dépôt `KIT_RELEASE_ENABLED` = `true`.
|
|
91
90
|
|
|
92
91
|
## CI et déploiement
|
|
93
92
|
|
|
@@ -197,6 +197,9 @@ describe("migrateToKitPackage", () => {
|
|
|
197
197
|
expect(json("apps/tools/package.json").scripts.build).toContain(
|
|
198
198
|
"--project ctz-tools"
|
|
199
199
|
)
|
|
200
|
+
expect(
|
|
201
|
+
result.changes.find((change) => change.file === "package.json")?.detail
|
|
202
|
+
).not.toContain("script op:sync,")
|
|
200
203
|
expect(json("rc.config.json").sentry).toEqual({
|
|
201
204
|
org: "contoso-org",
|
|
202
205
|
projects: { api: "ctz-api" },
|
|
@@ -269,9 +269,16 @@ function rewriteScripts(
|
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
sentryProjectsToApps(migration, scripts, app)
|
|
272
|
-
|
|
272
|
+
const renamed = renameSecretsScript(scripts)
|
|
273
273
|
|
|
274
|
-
|
|
274
|
+
if (renamed.length === 0) {
|
|
275
|
+
return notes
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
return [
|
|
279
|
+
...notes.filter((note) => note !== `script ${LEGACY_SECRETS_SCRIPT}`),
|
|
280
|
+
...renamed,
|
|
281
|
+
]
|
|
275
282
|
}
|
|
276
283
|
|
|
277
284
|
function usesRc(pkg: Manifest): boolean {
|