File tree 2 files changed +3
-27
lines changed
test-packages/unstable-release
2 files changed +3
-27
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ async function publish() {
10
10
for ( let workspace of publicWorkspaces ) {
11
11
console . info ( `Publishing ${ workspace } ` ) ;
12
12
try {
13
- await execaCommand ( 'npm publish --tag=unstable --verbose --access=public' , { cwd : dirname ( workspace ) } ) ;
13
+ await execaCommand ( 'pnpm publish --no-git-checks --tag=unstable --verbose --access=public' , {
14
+ cwd : dirname ( workspace ) ,
15
+ } ) ;
14
16
} catch ( err ) {
15
17
console . info ( `Publishing ${ workspace } has failed. A full list of errors will be printed at the end of this run` ) ;
16
18
errors . push ( err ) ;
Original file line number Diff line number Diff line change @@ -17,12 +17,6 @@ async function updateVersions() {
17
17
console . info ( `Setting version of ${ workspace } ` ) ;
18
18
await setVersion ( sha , workspace ) ;
19
19
}
20
-
21
- // Update each dependency to use the new versions
22
- for ( let workspace of publicWorkspaces ) {
23
- console . info ( `Updating dependencies of ${ workspace } ` ) ;
24
- await updateDependencies ( workspace ) ;
25
- }
26
20
}
27
21
28
22
updateVersions ( ) ;
@@ -44,23 +38,3 @@ async function setVersion(sha, filePath) {
44
38
45
39
await fse . writeJSON ( filePath , json , { spaces : 2 } ) ;
46
40
}
47
-
48
- async function updateDependencies ( filePath ) {
49
- let json = await fse . readJSON ( filePath ) ;
50
-
51
- for ( let [ dep , version ] of Object . entries ( NEW_VERSIONS ) ) {
52
- if ( ( json . dependencies || { } ) [ dep ] ) {
53
- json . dependencies [ dep ] = version ;
54
- }
55
-
56
- if ( ( json . devDependencies || { } ) [ dep ] ) {
57
- json . devDependencies [ dep ] = version ;
58
- }
59
-
60
- if ( ( json . peerDependencies || { } ) [ dep ] ) {
61
- json . peerDependencies [ dep ] = version ;
62
- }
63
- }
64
-
65
- await fse . writeJSON ( filePath , json , { spaces : 2 } ) ;
66
- }
You can’t perform that action at this time.
0 commit comments