File tree 4 files changed +22
-4
lines changed
4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -111,8 +111,8 @@ bun run test
111
111
1 . Create a new git tag:
112
112
113
113
``` bash
114
- yarn version:tag < package-name> < version>
115
- # e.g. yarn version:tag binary-merkle-root 0.0.1
114
+ bun version:tag < package-name> < version>
115
+ # e.g. bun version:tag binary-merkle-root 0.0.1
116
116
```
117
117
118
118
2 . Push the new git tag:
Original file line number Diff line number Diff line change 12
12
"postinstall" : " husky && git config --local core.editor cat" ,
13
13
"build" : " nargo compile" ,
14
14
"test" : " bun run build && mocha && nargo test --workspace" ,
15
- "version:tag" : " git tag ${0}-v${1} " ,
15
+ "version:tag" : " bun scripts/create-tag.ts " ,
16
16
"version:release" : " changelogithub"
17
17
},
18
18
"keywords" : [
Original file line number Diff line number Diff line change
1
+ import { execSync } from 'child_process'
2
+
3
+ const packageName = process . argv [ 2 ]
4
+ const version = process . argv [ 3 ]
5
+
6
+ if ( ! packageName || ! version ) {
7
+ console . error ( '❌ Please provide a package name and version' )
8
+ process . exit ( 1 )
9
+ }
10
+
11
+ try {
12
+ execSync ( `git tag ${ packageName } -v${ version } ` , { stdio : 'inherit' } )
13
+ console . log ( `✅ Created git tag: ${ packageName } -v${ version } ` )
14
+ } catch ( err ) {
15
+ console . error ( '❌ Failed to create git tag' , err )
16
+ process . exit ( 1 )
17
+ }
Original file line number Diff line number Diff line change 12
12
},
13
13
"include" : [
14
14
" ./src/**/*.ts" ,
15
- " ./tests/**/*.ts"
15
+ " ./tests/**/*.ts" ,
16
+ " ./scripts/**/*.ts"
16
17
],
17
18
"exclude" : [
18
19
" ./dist"
You can’t perform that action at this time.
0 commit comments