2424 environment : allow-publish-driver-to-cdn # This is required for OIDC login (azure/login)
2525 steps :
2626 - uses : actions/checkout@v5
27- - uses : actions/setup-node@v5
27+ - uses : actions/setup-node@v6
2828 with :
2929 node-version : 20
3030 registry-url : ' https://registry.npmjs.org'
7272 if : github.repository == 'microsoft/playwright'
7373 steps :
7474 - uses : actions/checkout@v5
75- - uses : actions/setup-node@v5
75+ - uses : actions/setup-node@v6
7676 with :
7777 node-version : 20
7878 - uses : actions/create-github-app-token@v2
@@ -82,17 +82,22 @@ jobs:
8282 private-key : ${{ secrets.PLAYWRIGHT_PRIVATE_KEY }}
8383 repositories : trace.playwright.dev
8484 - name : Deploy Canary
85+ if : contains(github.ref, 'main') && github.event.schedule
8586 run : bash utils/build/deploy-trace-viewer.sh --canary
86- if : contains(github.ref, 'main')
8787 env :
8888 GH_SERVICE_ACCOUNT_TOKEN : ${{ steps.app-token.outputs.token }}
8989 - name : Deploy Beta
90- run : bash utils/build/deploy-trace-viewer.sh --beta
9190 if : contains(github.ref, 'release') && github.event_name == 'push'
91+ run : bash utils/build/deploy-trace-viewer.sh --beta
9292 env :
9393 GH_SERVICE_ACCOUNT_TOKEN : ${{ steps.app-token.outputs.token }}
9494 - name : Deploy Stable
95+ if : github.event_name == 'release' && github.event.action == 'published'
96+ run : bash utils/build/deploy-trace-viewer.sh --stable
97+ env :
98+ GH_SERVICE_ACCOUNT_TOKEN : ${{ steps.app-token.outputs.token }}
99+ - name : Deploy Stable (manually)
100+ if : contains(github.ref, 'release') && github.event_name == 'workflow_dispatch'
95101 run : bash utils/build/deploy-trace-viewer.sh --stable
96- if : contains(github.ref, 'release') && github.event_name == 'release'
97102 env :
98103 GH_SERVICE_ACCOUNT_TOKEN : ${{ steps.app-token.outputs.token }}
0 commit comments