Skip to content

Commit 9b5b56d

Browse files
Release based deploys (#47)
* Enable release-based deploys * Create sour-grapes-admire.md
1 parent f5f5e6f commit 9b5b56d

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.changeset/sour-grapes-admire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"streamdown": patch
3+
---
4+
5+
enable release-based web deploys

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,10 @@ jobs:
6767
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
6868
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6969
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
70+
71+
- name: Deploy to Vercel
72+
if: steps.changesets.outputs.published == 'true'
73+
run: npx vercel --prod --token=${{ secrets.VERCEL_TOKEN }}
74+
env:
75+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
76+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

vercel.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://openapi.vercel.sh/vercel.json",
3+
"git": {
4+
"deploymentEnabled": {
5+
"main": false
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)