-
Notifications
You must be signed in to change notification settings - Fork 1.2k
63 lines (52 loc) · 1.41 KB
/
trigger-release.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
on:
workflow_dispatch:
inputs:
releaseType:
description: Release stable or beta?
required: true
type: choice
options:
- beta
- stable
semverType:
description: semver type?
type: choice
options:
- patch
- minor
- major
name: Trigger Release
env:
PNPM_VERSION: 8.4.0
SEMVER_TYPE: ${{ github.event.inputs.semverType }}
RELEASE_TYPE: ${{ github.event.inputs.releaseType }}
jobs:
start:
runs-on: ubuntu-latest
environment: release-${{ github.event.inputs.releaseType }}-${{ github.event.inputs.semverType }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 10
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
- name: Install
uses: ./.github/workflows/install
- run: |
pnpm clean
pnpm build
pnpm run-all-checks
pnpm test:build
- name: Configure git
run: |
git config user.name "vercel-release-bot"
git config user.email "[email protected]"
- name: Bump version and tag
run: |
node ./scripts/bump-next-version.js
- name: Git push
env:
RELEASE_BOT_GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
run: |
git push origin main
git push origin --tags