File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ async function run() {
185
185
console . debug ( 'version incrementType type:' , incrementType ) ;
186
186
}
187
187
188
- let currentVersion = execSync ( `npm view ${ pkg . name } version` , { cwd : srcPackageDir } ) . toString ( ) . trim ( ) ;
188
+ const currentVersion = execSync ( `npm view ${ pkg . name } version` , { cwd : srcPackageDir } ) . toString ( ) . trim ( ) ;
189
189
190
190
setVersion ( currentVersion , srcPackageDir ) ;
191
191
if ( srcPackageDir !== deployDir ) {
@@ -217,7 +217,7 @@ async function run() {
217
217
if ( disableGitTag ) {
218
218
console . log ( 'Git tagging disabled... Skipping' ) ;
219
219
} else {
220
- spawnSync ( ` git checkout ${ path . join ( deployDir , 'package.json' ) } ` ) ; // cleanup
220
+ spawnSync ( ' git restore .' ) ; // Cleanup changes in the git workspace
221
221
spawnSync ( `git tag ${ newVersion } ` ) ;
222
222
spawnSync ( `echo "version=${ newVersion } " >> $GITHUB_OUTPUT` ) ;
223
223
You can’t perform that action at this time.
0 commit comments