@indigoai/indigo-icons 0.3.3 → 0.3.4

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.
Files changed (2) hide show
  1. package/README.md +17 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -22,7 +22,23 @@ docker compose run --rm frontend ./publish_local.sh
22
22
 
23
23
  ## Publishing the package to NPM
24
24
 
25
- You should have an NPM account and be logged in to publish the package.
25
+ Releases are published from GitLab CI, not from a laptop:
26
+
27
+ 1. Bump `version` in `package.json` on `main` and push a tag `vX.Y.Z` on that commit. The tag's `version` job fails
28
+ when the two don't match: fix `package.json`, commit, then delete the tag and push it again on the new commit.
29
+ 2. Once `version` passes, the `npm` job publishes the package without waiting for anyone.
30
+ 3. The job publishes through npm trusted publishing, so GitLab holds no npm token. On npmjs.com, the package
31
+ (Settings → Trusted publishing → GitLab CI/CD) trusts namespace `indigo.ai`, project `design-system-icons`, CI file
32
+ `.gitlab-ci.yml`, with no environment. It works only on GitLab.com shared runners. The package is published
33
+ without npm provenance, which needs a public source repository.
34
+
35
+ A version with a pre-release suffix (`vX.Y.Z-rc.N`) is published under the `next` dist-tag, so it never becomes
36
+ `latest`.
37
+
38
+ ### Legacy: publishing manually
39
+
40
+ Before the pipeline, the package was released from a laptop. This still works but is superseded by the tag
41
+ pipeline above. You need an NPM account with publish rights and to be logged in.
26
42
 
27
43
  Bump the package version, manually or using one of the npm commands: npm version patch, npm version minor, npm
28
44
  version major. Then run:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@indigoai/indigo-icons",
3
3
  "description": "Indigo Icons",
4
- "version": "0.3.3",
4
+ "version": "0.3.4",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "exports": {