File tree 5 files changed +71
-2
lines changed
5 files changed +71
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,13 @@ permissions:
8
8
id-token : write # to enable use of OIDC for npm provenance
9
9
10
10
jobs :
11
+ pre-publish :
12
+ if : github.ref == 'refs/heads/develop'
13
+ uses : ./.github/workflows/publish-dry-run.yml
14
+ secrets :
15
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
11
16
publish :
17
+ needs : pre-publish
12
18
runs-on : ubuntu-latest
13
19
environment : development
14
20
# restricts job to develop branch
44
50
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
45
51
46
52
- name : Publish Alpha
47
- run : yarn multi-semantic-release --deps.bump=override --deps.release=patch --sequential-init
53
+ run : yarn multi-semantic-release
48
54
env :
49
55
NPM_CONFIG_PROVENANCE : true
50
56
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Publish Dry Run
2
+ on :
3
+ workflow_dispatch :
4
+ workflow_call :
5
+ secrets :
6
+ NPM_TOKEN :
7
+ description : ' NPM token'
8
+ required : true
9
+
10
+ jobs :
11
+ publish-dry-run :
12
+ runs-on : ubuntu-latest
13
+ environment : development
14
+ steps :
15
+ - name : Checkout repo
16
+ uses : actions/checkout@v4
17
+ with :
18
+ fetch-depth : 0
19
+ persist-credentials : false
20
+
21
+ - name : Setup Node
22
+ uses : actions/setup-node@v4
23
+ with :
24
+ node-version : 20
25
+ cache : ' yarn'
26
+
27
+ - name : Install dependencies
28
+ run : yarn --immutable
29
+
30
+ - name : Build
31
+ run : yarn build:packages
32
+
33
+ - name : Dry run Publish
34
+ run : yarn multi-semantic-release --dry-run --silent | grep -E '#|###|\*' > dry_run_output.txt
35
+ env :
36
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
38
+
39
+ - name : Write results to summary
40
+ run : |
41
+ if [ -s dry_run_output.txt ]; then
42
+ echo "# Packages to be published:" >> $GITHUB_STEP_SUMMARY
43
+ cat dry_run_output.txt >> $GITHUB_STEP_SUMMARY
44
+ else
45
+ echo "Nothing will be published" >> $GITHUB_STEP_SUMMARY
46
+ fi
Original file line number Diff line number Diff line change @@ -10,7 +10,12 @@ permissions:
10
10
id-token : write # to enable use of OIDC for npm provenance
11
11
12
12
jobs :
13
+ pre-publish :
14
+ uses : ./.github/workflows/publish-dry-run.yml
15
+ secrets :
16
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
13
17
publish :
18
+ needs : pre-publish
14
19
runs-on : ubuntu-latest
15
20
environment : production
16
21
steps :
44
49
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
45
50
46
51
- name : Publish
47
- run : yarn multi-semantic-release --deps.bump=override --deps.release=patch --sequential-init
52
+ run : yarn multi-semantic-release
48
53
env :
49
54
NPM_CONFIG_PROVENANCE : true
50
55
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 68
68
}
69
69
]
70
70
},
71
+ "multi-release" : {
72
+ "sequentialInit" : true ,
73
+ "deps" : {
74
+ "bump" : " override" ,
75
+ "release" : " patch"
76
+ }
77
+ },
71
78
"packageManager" :
" [email protected] " ,
72
79
"engines" : {
73
80
"node" : " >=20"
Original file line number Diff line number Diff line change @@ -239,10 +239,15 @@ export class LidoSDKStake extends LidoSDKModule {
239
239
) : Promise < PopulatedTransaction > {
240
240
const { referralAddress, value, account } = await this . parseProps ( props ) ;
241
241
const data = this . stakeEthEncodeData ( { referralAddress } ) ;
242
+ const gas = await this . submitGasLimit ( value , referralAddress , {
243
+ account,
244
+ chain : this . core . chain ,
245
+ } ) ;
242
246
const address = await this . contractAddressStETH ( ) ;
243
247
return {
244
248
to : address ,
245
249
from : account . address ,
250
+ gas,
246
251
value,
247
252
data,
248
253
} ;
You can’t perform that action at this time.
0 commit comments