File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 8
8
"format:check" : " prettier --ignore-path .eslintignore --check ." ,
9
9
"lint" : " eslint --cache ." ,
10
10
"prerelease" : " pnpm build" ,
11
- "release" : " changeset publish --tag v6 " ,
11
+ "release" : " ./scripts/changesets-release.sh " ,
12
12
"size" : " filesize" ,
13
13
"test" : " jest" ,
14
14
"test:inspect" : " node --inspect-brk ./node_modules/.bin/jest" ,
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ MODE=$( node -e " console.log(require('./.changeset/pre.json').mode)" )
4
+
5
+ # Can only provide a custom --tag when not in prerelease mode
6
+ # The prerelease tags come from the pre.json "tag" field
7
+ if [ $MODE == " exit" ]; then
8
+ pnpm exec changeset publish --tag v6
9
+ else
10
+ pnpm exec changeset publish
11
+ fi
You can’t perform that action at this time.
0 commit comments