File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 2626 - name : Build
2727 run : make build
2828 env :
29- PRIVATE_KEY : ${{ secrets.PRIVATE_KEY }}
29+ IS_PR : ' true '
3030
3131 - name : Generate assets
3232 run : make static-assets
Original file line number Diff line number Diff line change @@ -14,8 +14,13 @@ export default ({ mode }) => {
1414 name : 'sign-bundle' ,
1515 writeBundle : async ( options , bundle ) => {
1616 const privateKeyB64 = env . PRIVATE_KEY
17+ const isPR = env . IS_PR === 'true' || process . env . IS_PR === 'true'
18+
1719 if ( ! privateKeyB64 ) {
18- // cancel build process if there is no private key
20+ if ( isPR ) {
21+ console . warn ( '⚠️ PR build - skipping bundle signing' )
22+ return
23+ }
1924 throw new Error ( '❌ PRIVATE_KEY environment variable is required for bundle signing' )
2025 }
2126
You can’t perform that action at this time.
0 commit comments