Skip to content

Commit 00e5f4f

Browse files
authored
fix(ci): add tag to npm release (#127)
2 parents 50bb989 + fd029a9 commit 00e5f4f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.changes/config.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
}
1111
},
1212
"prepublish": ["pnpm i", "pnpm build"],
13-
"publish": ["pnpm publish --access public --no-git-checks --provenance"],
13+
"publish": [
14+
"pnpm publish --access public --no-git-checks --provenance --tag ${ pkg.versionPrerelease?.[0] || 'latest' }"
15+
],
1416
"postversion": ["pnpm i --lockfile-only"],
1517
"postpublish": [
1618
"git tag ${ pkg.pkg }-v${ pkgFile.versionMajor } -f",

0 commit comments

Comments
 (0)