Skip to content

Commit 1d3de2b

Browse files
committed
chore: fix vercel env for deploy apps because inputs is undefined on push
1 parent a9fcbf1 commit 1d3de2b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/deploy-storefront.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Set Vercel environment
4242
id: environment
4343
run: |
44-
ENVIRONMENT=${{ github.event.inputs.environment == 'next' && 'preview' || 'production' }}
44+
ENVIRONMENT=${{ github.event.inputs.environment == 'production' && 'production' || 'preview' }}
4545
echo "vercel=${ENVIRONMENT}" >> "$GITHUB_OUTPUT"
4646
4747
- name: Pull Vercel Environment Information
@@ -55,5 +55,5 @@ jobs:
5555
run: echo "url=$(vercel deploy --prebuilt ${{(steps.environment.outputs.vercel == 'production' && '--prod') || ''}} --token=${{ secrets.VERCEL_TOKEN }})" >> $GITHUB_OUTPUT
5656

5757
- name: Set Vercel alias
58-
if: github.event.inputs.environment == 'next'
58+
if: steps.environment.outputs.vercel == 'preview'
5959
run: vercel alias --token=${{ secrets.VERCEL_TOKEN }} --scope=${{ secrets.VERCEL_TEAM }} set ${{ steps.deploy.outputs.url }} next.designsystemet.no

.github/workflows/deploy-storybook.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Set Vercel environment
4747
id: environment
4848
run: |
49-
ENVIRONMENT=${{ github.event.inputs.environment == 'next' && 'preview' || 'production' }}
49+
ENVIRONMENT=${{ github.event.inputs.environment == 'production' && 'production' || 'preview' }}
5050
echo "vercel=${ENVIRONMENT}" >> "$GITHUB_OUTPUT"
5151
5252
- name: Pull Vercel Environment Information
@@ -60,5 +60,5 @@ jobs:
6060
run: echo "url=$(vercel deploy --prebuilt ${{(steps.environment.outputs.vercel == 'production' && '--prod') || ''}} --token=${{ secrets.VERCEL_TOKEN }})" >> $GITHUB_OUTPUT
6161

6262
- name: Set Vercel alias
63-
if: github.event.inputs.environment == 'next'
63+
if: steps.environment.outputs.vercel == 'preview'
6464
run: vercel alias --token=${{ secrets.VERCEL_TOKEN }} --scope=${{ secrets.VERCEL_TEAM }} set ${{ steps.deploy.outputs.url }} next.storybook.designsystemet.no

.github/workflows/deploy-theme.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Set Vercel environment
4242
id: environment
4343
run: |
44-
ENVIRONMENT=${{ github.event.inputs.environment == 'next' && 'preview' || 'production' }}
44+
ENVIRONMENT=${{ github.event.inputs.environment == 'production' && 'production' || 'preview' }}
4545
echo "vercel=${ENVIRONMENT}" >> "$GITHUB_OUTPUT"
4646
4747
- name: Pull Vercel Environment Information
@@ -55,5 +55,5 @@ jobs:
5555
run: echo "url=$(vercel deploy --prebuilt ${{(steps.environment.outputs.vercel == 'production' && '--prod') || ''}} --token=${{ secrets.VERCEL_TOKEN }})" >> $GITHUB_OUTPUT
5656

5757
- name: Set Vercel alias
58-
if: github.event.inputs.environment == 'next'
58+
if: steps.environment.outputs.vercel == 'preview'
5959
run: vercel alias --token=${{ secrets.VERCEL_TOKEN }} --scope=${{ secrets.VERCEL_TEAM }} set ${{ steps.deploy.outputs.url }} next.theme.designsystemet.no

0 commit comments

Comments
 (0)