@jaws-developers-customers/consulca-types 1.0.7 → 1.1.15
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 +5 -3
- package/index.js +1 -1
- package/index.mjs +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,13 +10,15 @@ npm install @jaws-developers-customers/consulca-types
|
|
|
10
10
|
|
|
11
11
|
## Pubblicazione automatica
|
|
12
12
|
|
|
13
|
-
Ogni push su `
|
|
13
|
+
Ogni push su `master` esegue i test e pubblica automaticamente il pacchetto su npm tramite GitHub Actions.
|
|
14
14
|
|
|
15
15
|
Prerequisito:
|
|
16
16
|
|
|
17
|
-
- npm Trusted Publisher configurato per
|
|
17
|
+
- npm Trusted Publisher configurato nelle impostazioni del pacchetto su npm per l'organizzazione `JAWS-Developers-Customers`, il repository `15-NPMPackage` e il workflow `publish.yml` (senza environment).
|
|
18
18
|
|
|
19
|
-
Il workflow
|
|
19
|
+
Il trusted publishing richiede npm 11.5.1 o successivo: il workflow installa npm 11.21.0 prima della pubblicazione, senza usare `NPM_TOKEN`. La versione npm 10 inclusa in Node.js 22 non supporta questa autenticazione, anche se può generare la provenance.
|
|
20
|
+
|
|
21
|
+
Il workflow genera una versione unica per ogni run su `master`, così la pubblicazione non fallisce per versioni duplicate.
|
|
20
22
|
|
|
21
23
|
## Cosa esporta
|
|
22
24
|
|
package/index.js
CHANGED
|
@@ -20,7 +20,7 @@ const COLOR_PALETTE = Object.freeze({
|
|
|
20
20
|
text: '#102A43',
|
|
21
21
|
});
|
|
22
22
|
const CONSTANTS = Object.freeze({
|
|
23
|
-
API_DEV: 'https://
|
|
23
|
+
API_DEV: 'https://test.jawsdevelopers.ch',
|
|
24
24
|
API: 'https://api.consulca.ch',
|
|
25
25
|
ICON: 'https://www.consulca.ch/wp-content/themes/consulca_theme2020/img/default_user.png'
|
|
26
26
|
});
|
package/index.mjs
CHANGED