2525permissions :
2626 id-token : " write"
2727 contents : " write"
28- env :
29- GH_TOKEN : ${{ github.token }}
30-
3128jobs :
3229 build_and_release :
3330 runs-on : macos-14
3633 - uses : actions/checkout@v6
3734 with :
3835 ref : ${{ github.event_name == 'push' && 'master' || github.ref_name }}
36+ persist-credentials : ${{ github.event_name == 'push' }}
3937
4038 - uses : actions/setup-node@v6
4139 with :
7977 - if : github.event_name == 'push'
8078 run : |
8179 gh release create ${{github.ref_name}} -d -F CURRENT_CHANGE.md -t ${{github.ref_name}}
80+ env :
81+ GH_TOKEN : ${{ github.token }}
8282
8383 - uses : actions/setup-python@v6
8484 if : github.event_name == 'push'
@@ -107,19 +107,37 @@ jobs:
107107 gh release upload ${{github.ref_name}} build/safari.dmg
108108 gh release upload ${{github.ref_name}} build/chromium-without-katex-and-tiktoken.zip
109109 gh release upload ${{github.ref_name}} build/firefox-without-katex-and-tiktoken.zip
110+ env :
111+ GH_TOKEN : ${{ github.token }}
110112
111- - name : Submit stores
112- if : github.event_name == 'push' || inputs.submit_stores == 'true'
113+ - name : Submit stores dry run
114+ if : github.event_name != 'push' && inputs.submit_stores == 'true'
113115 run : |
114- args=()
115- if [ "${{ github.event_name }}" != "push" ]; then
116- if [ "${{ inputs.dry_run }}" != "true" ]; then
117- echo "::error::Manual store submission only supports dry_run=true. Push a v* tag for a real submission."
118- exit 1
119- fi
120- args+=(--dry-run)
116+ if [ "${{ inputs.dry_run }}" != "true" ]; then
117+ echo "::error::Manual store submission only supports dry_run=true. Push a v* tag for a real submission."
118+ exit 1
121119 fi
122- npm run release:submit -- "${args[@]}"
120+ npm run release:submit -- --dry-run
121+ env :
122+ CHROME_EXTENSION_ID : dry-run-chrome-extension-id
123+ CHROME_CLIENT_ID : dry-run-chrome-client-id
124+ CHROME_CLIENT_SECRET : dry-run-chrome-client-secret
125+ CHROME_REFRESH_TOKEN : dry-run-chrome-refresh-token
126+ CHROME_PUBLISH_TARGET : default
127+ CHROME_DEPLOY_PERCENTAGE : ' 100'
128+ CHROME_REVIEW_EXEMPTION : ' false'
129+ FIREFOX_EXTENSION_ID : dry-run-firefox-extension-id
130+ FIREFOX_JWT_ISSUER : dry-run-firefox-jwt-issuer
131+ FIREFOX_JWT_SECRET : dry-run-firefox-jwt-secret
132+ FIREFOX_CHANNEL : listed
133+ FIREFOX_COMPATIBILITY : firefox
134+ EDGE_PRODUCT_ID : dry-run-edge-product-id
135+ EDGE_CLIENT_ID : dry-run-edge-client-id
136+ EDGE_API_KEY : dry-run-edge-api-key
137+
138+ - name : Submit stores
139+ if : github.event_name == 'push'
140+ run : npm run release:submit
123141 env :
124142 CHROME_EXTENSION_ID : ${{ secrets.CHROME_EXTENSION_ID }}
125143 CHROME_CLIENT_ID : ${{ secrets.CHROME_CLIENT_ID }}
@@ -140,3 +158,5 @@ jobs:
140158 - if : github.event_name == 'push'
141159 run : |
142160 gh release edit ${{github.ref_name}} --draft=false
161+ env :
162+ GH_TOKEN : ${{ github.token }}
0 commit comments