@pearpages/heatmap 0.4.1 → 0.4.2
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 +17 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
A GitHub-style contribution heatmap as a React component. Themeable through CSS custom
|
|
11
11
|
properties, localised through `Intl`, dark-mode ready, and correct in every time zone.
|
|
12
|
-
No runtime dependencies: 3.3 kB gzipped, plus 1
|
|
12
|
+
No runtime dependencies: 3.3 kB gzipped, plus 2.1 kB of CSS.
|
|
13
13
|
|
|
14
14
|
**[Live demo](https://heatmap.pearpages.com)**
|
|
15
15
|
|
|
@@ -300,6 +300,12 @@ weeks Monday to Sunday, so a translated heatmap that still starts on Sunday read
|
|
|
300
300
|
wrong. It defaults to `0` (Sunday, the GitHub convention), and the component picks the
|
|
301
301
|
order of its day labels up from the data.
|
|
302
302
|
|
|
303
|
+
## What's new in 0.4.2
|
|
304
|
+
|
|
305
|
+
**No code changes.** The README now gives the stylesheet's size as 2.1 kB gzipped, up
|
|
306
|
+
from the 1.9 kB it stated before 0.4.0's custom properties. From this release on, GitHub
|
|
307
|
+
Releases are created by the publish workflow from these notes.
|
|
308
|
+
|
|
303
309
|
## What's new in 0.4.1
|
|
304
310
|
|
|
305
311
|
**No empty table header.** The corner cell above the day-name column was an empty `<th>`,
|
|
@@ -386,19 +392,23 @@ game:
|
|
|
386
392
|
|
|
387
393
|
| Trigger | Workflow | Effect |
|
|
388
394
|
| --- | --- | --- |
|
|
395
|
+
| Pull request to `main` | `.github/workflows/ci.yml` | Runs the tests, lint, build and package checks. Deploys and publishes nothing |
|
|
389
396
|
| Push to `main` | `.github/workflows/deploy.yml` | Runs the tests, builds the library + `demo/`, deploys to GitHub Pages. **Never touches npm.** |
|
|
390
|
-
| Push a `v*` tag | `.github/workflows/publish.yml` | Builds and publishes to npm with provenance |
|
|
397
|
+
| Push a `v*` tag | `.github/workflows/publish.yml` | Builds and publishes to npm with provenance, then creates the GitHub Release |
|
|
391
398
|
|
|
392
399
|
So you can push to `main` freely — nothing reaches npm until a `v*` tag is pushed.
|
|
393
400
|
|
|
394
401
|
### The happy path
|
|
395
402
|
|
|
403
|
+
Write a `## What's new in X.Y.Z` section in this README and commit it — it becomes the
|
|
404
|
+
GitHub Release notes. Then:
|
|
405
|
+
|
|
396
406
|
```bash
|
|
397
407
|
npm version minor # bumps package.json, commits, and tags vX.Y.Z
|
|
398
408
|
git push --follow-tags # pushes main (deploys the demo) and the tag (publishes to npm)
|
|
399
409
|
```
|
|
400
410
|
|
|
401
|
-
###
|
|
411
|
+
### Five things that are easy to get wrong
|
|
402
412
|
|
|
403
413
|
1. **The tag name does not set the published version.** `publish.yml` just runs
|
|
404
414
|
`npm publish`, which reads the version out of `package.json`. Tagging `v0.3.0` while
|
|
@@ -415,3 +425,7 @@ git push --follow-tags # pushes main (deploys the demo) and the tag (publish
|
|
|
415
425
|
renders the version read from the root `package.json`, and the Pages deploy runs on
|
|
416
426
|
push to `main`. The site therefore shows the bumped version as soon as the bump commit
|
|
417
427
|
lands — before the tag exists, and before npm has anything.
|
|
428
|
+
5. **No "What's new" section, no release.** `publish.yml` takes the release notes from
|
|
429
|
+
`## What's new in X.Y.Z` (exact version, exact heading) and fails before `npm publish`
|
|
430
|
+
when it is missing. Add the section and push a new version; a failed tag cannot be
|
|
431
|
+
re-pushed as-is without deleting it first.
|