Skip to content

Commit 4380590

Browse files
authored
ci: configure v3 publish tag in package metadata (#2271)
## Summary Configure `v3` through `publishConfig.tag` and let `npm publish` consume it. npm 11 rejects `--tag v3` at the CLI because `v3` is a valid semver range, even though this package already uses `v3` as an established registry dist-tag. `publishConfig` passes the tag to the registry publisher without the CLI's semver-range validation, preserving the existing dist-tag.
1 parent 4c84fe7 commit 4380590

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
- run: npm install --global npm@11.5.1
2121
- run: yarn install
2222
- run: yarn prepublishOnly
23-
- run: npm publish --ignore-scripts --access public --tag v3
23+
- run: npm publish --ignore-scripts --access public

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
"engines": {
6363
"node": ">=14.0.0"
6464
},
65+
"publishConfig": {
66+
"tag": "v3"
67+
},
6568
"scripts": {
6669
"test": "NODE_OPTIONS=--experimental-vm-modules jest --maxWorkers=4 --coverage",
6770
"lint": "eslint --ignore-path .gitignore . && prettier --check . --ignore-path .gitignore",

0 commit comments

Comments
 (0)