Skip to content

Commit

Permalink
add vercel promotion script and link changesets to it
Browse files Browse the repository at this point in the history
  • Loading branch information
Trombach committed Oct 5, 2024
1 parent 85d5ef6 commit cce2bb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ jobs:
uses: changesets/action@v1
with:
version: pnpm bump-version
publish: pnpm promote-staging --token=${{ secrets.VERCEL_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.CHANGESETS_PAT }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"bump-version": "changeset version && biome format --write package.json"
"bump-version": "changeset version && biome format --write package.json",
"promote-staging": "vercel promote https://astro-homepage-trombachs-projects.vercel.app"
},
"dependencies": {
"@astrojs/check": "^0.9.3",
Expand Down

0 comments on commit cce2bb2

Please sign in to comment.