Repository navigation
Commit 2461127
committed
Release tooling: Pass the namespaced tag prefix and commit message to pnpm's native version command
pnpm 11 implements `pnpm version` itself instead of proxying to `npm version`, so the `tag-version-prefix` and `message` entries in each package's `.npmrc` were never read. A dry run of the 3.7.0 bump therefore produced a plain `v3.7.0` tag and a bare "3.7.0" commit message, which the publish workflow's tag routing would have treated as a legacy tailwind-merge tag and which would have broken the per-package tag scheme for the vite package entirely.
Both settings are pnpm rc options, but pnpm config lives repo-wide in `pnpm-workspace.yaml` while the prefix differs per package. Each package therefore gets a `release` script that wraps `pnpm version` with the right `--tag-version-prefix` and `--message` flags; the bump type is forwarded through `pnpm release <bump>`. Verified in a throwaway repository that this yields the namespaced annotated tag and commit message and still runs the version lifecycle hooks.
The `.npmrc` files are removed since nothing reads them anymore, together with the packed-tarball guard that excluded them. The library manifest also drops its empty `dependencies` object: pnpm normalizes the manifest when writing the new version and would otherwise remove it inside the release commit.
The release guide now documents the native command, the clean-working-tree requirement, and how to create the commit and tag locally without pushing by leaving `DANYS_MACHINE` unset.1 parent 9d41508 commit 2461127
6 files changed
Lines changed: 4 additions & 10 deletions
File tree
- agents
- packages
- tailwind-merge
- vite
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
| |||
0 commit comments