-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.32 KB
/
Copy pathrelease.yml
File metadata and controls
43 lines (39 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release
on:
push:
branches: [master]
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
pull-requests: write
jobs:
build:
name: Create PR or Deploy to Vercel Production
runs-on: ubuntu-latest
environment:
name: production
url: ${{ steps.deployment.outputs.DEPLOYMENT_URL }}
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ github.actor }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
steps:
- uses: actions/checkout@v6.0.1
- uses: oven-sh/setup-bun@v2.1.0
- run: bunx vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- run: bunx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- run: |
bunx vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} | \
xargs -I {} echo "DEPLOYMENT_URL={}" >> "${GITHUB_OUTPUT}"
id: deployment
- name: Create Version PR or Deploy to Pages
id: changesets
uses: changesets/action@v1.5.3
with:
commit: "chore(release): version packages"
title: "chore(release): version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_ENV: production