We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e42ae46 commit 8830c60Copy full SHA for 8830c60
.github/workflows/deploy.yml
@@ -20,12 +20,11 @@ jobs:
20
node-version: 22
21
- run: npm ci
22
- run: npx wrangler whoami
23
- - run: npm run build
24
- - name: Deploy --preview-alias
+ - name: Deploy preview
25
if: "${{ github.ref_name != 'main' }}"
26
- run: npx wrangler versions upload --preview-alias "${{ github.ref_name }}"
27
- - name: Deploy production
28
- if: "${{ github.ref_name == 'main' }}"
29
env:
30
IS_PREVIEW_ENV: true
31
- run: npx wrangler deploy
+ run: npm run build && npx wrangler versions upload --preview-alias "${{ github.ref_name }}"
+ - name: Deploy production
+ if: "${{ github.ref_name == 'main' }}"
+ run: npm run build && npx wrangler deploy
0 commit comments