Commit 1d3de2b 1 parent a9fcbf1 commit 1d3de2b Copy full SHA for 1d3de2b
File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 41
41
- name : Set Vercel environment
42
42
id : environment
43
43
run : |
44
- ENVIRONMENT=${{ github.event.inputs.environment == 'next ' && 'preview ' || 'production ' }}
44
+ ENVIRONMENT=${{ github.event.inputs.environment == 'production ' && 'production ' || 'preview ' }}
45
45
echo "vercel=${ENVIRONMENT}" >> "$GITHUB_OUTPUT"
46
46
47
47
- name : Pull Vercel Environment Information
55
55
run : echo "url=$(vercel deploy --prebuilt ${{(steps.environment.outputs.vercel == 'production' && '--prod') || ''}} --token=${{ secrets.VERCEL_TOKEN }})" >> $GITHUB_OUTPUT
56
56
57
57
- name : Set Vercel alias
58
- if : github.event.inputs.environment == 'next '
58
+ if : steps.environment.outputs.vercel == 'preview '
59
59
run : vercel alias --token=${{ secrets.VERCEL_TOKEN }} --scope=${{ secrets.VERCEL_TEAM }} set ${{ steps.deploy.outputs.url }} next.designsystemet.no
Original file line number Diff line number Diff line change 46
46
- name : Set Vercel environment
47
47
id : environment
48
48
run : |
49
- ENVIRONMENT=${{ github.event.inputs.environment == 'next ' && 'preview ' || 'production' }}
49
+ ENVIRONMENT=${{ github.event.inputs.environment == 'production ' && 'production ' || 'preview' }}
50
50
echo "vercel=${ENVIRONMENT}" >> "$GITHUB_OUTPUT"
51
51
52
52
- name : Pull Vercel Environment Information
60
60
run : echo "url=$(vercel deploy --prebuilt ${{(steps.environment.outputs.vercel == 'production' && '--prod') || ''}} --token=${{ secrets.VERCEL_TOKEN }})" >> $GITHUB_OUTPUT
61
61
62
62
- name : Set Vercel alias
63
- if : github.event.inputs.environment == 'next '
63
+ if : steps.environment.outputs.vercel == 'preview '
64
64
run : vercel alias --token=${{ secrets.VERCEL_TOKEN }} --scope=${{ secrets.VERCEL_TEAM }} set ${{ steps.deploy.outputs.url }} next.storybook.designsystemet.no
Original file line number Diff line number Diff line change 41
41
- name : Set Vercel environment
42
42
id : environment
43
43
run : |
44
- ENVIRONMENT=${{ github.event.inputs.environment == 'next ' && 'preview ' || 'production' }}
44
+ ENVIRONMENT=${{ github.event.inputs.environment == 'production ' && 'production ' || 'preview' }}
45
45
echo "vercel=${ENVIRONMENT}" >> "$GITHUB_OUTPUT"
46
46
47
47
- name : Pull Vercel Environment Information
55
55
run : echo "url=$(vercel deploy --prebuilt ${{(steps.environment.outputs.vercel == 'production' && '--prod') || ''}} --token=${{ secrets.VERCEL_TOKEN }})" >> $GITHUB_OUTPUT
56
56
57
57
- name : Set Vercel alias
58
- if : github.event.inputs.environment == 'next '
58
+ if : steps.environment.outputs.vercel == 'preview '
59
59
run : vercel alias --token=${{ secrets.VERCEL_TOKEN }} --scope=${{ secrets.VERCEL_TEAM }} set ${{ steps.deploy.outputs.url }} next.theme.designsystemet.no
You can’t perform that action at this time.
0 commit comments