File tree Expand file tree Collapse file tree 3 files changed +556
-598
lines changed
Expand file tree Collapse file tree 3 files changed +556
-598
lines changed Original file line number Diff line number Diff line change 11import * as process from 'node:process' ;
22import * as fs from 'node:fs' ;
33import { execSync } from 'node:child_process' ;
4+ import pkg from './package.json' with { type : 'json' } ;
45
5- const PKG = JSON . parse ( fs . readFileSync ( './package.json' ) . toString ( ) ) ;
66const RELEASE_BRANCH = 'master' ;
77
88// Paths for ESLint to check. Converted to string for convenience.
@@ -103,10 +103,10 @@ async function run() {
103103
104104 case 'release' : {
105105 checkRelease ( ) ;
106- executeCmd ( `git commit -am '${ PKG . version } '` ) ;
107- executeCmd ( `git tag -a ${ PKG . version } -m '${ PKG . version } '` ) ;
106+ executeCmd ( `git commit -am '${ pkg . version } '` ) ;
107+ executeCmd ( `git tag -a ${ pkg . version } -m '${ pkg . version } '` ) ;
108108 executeCmd ( `git push origin ${ RELEASE_BRANCH } ` ) ;
109- executeCmd ( `git push origin '${ PKG . version } '` ) ;
109+ executeCmd ( `git push origin '${ pkg . version } '` ) ;
110110 executeInteractiveCmd ( 'npm publish' ) ;
111111
112112 break ;
You can’t perform that action at this time.
0 commit comments